Thread: [Quickfix-developers] Error in using pointer of Initiator
Brought to you by:
orenmnero
From: Dilipsinh B. <dil...@si...> - 2015-06-16 05:34:37
|
Hello all, I created code as below: settings = new FIX::SessionSettings("MT4FIX.cfg"); storeFactory = new FIX::FileStoreFactory(*settings); logFactory = new FIX::FileLogFactory(*settings); initiator = new FIX::SocketInitiator(fixApp, *storeFactory, *settings, *logFactory); 'Tradeclient' example runs perfect with 'MT4FIX.cfg'... Application builds successful, but on debugging application, got exception on 'initiator'. And on running EXE directly gives "APPCRASH" error... Need help.. Regards Dilip |
From: Grant B. <gbi...@co...> - 2015-06-16 20:05:39
|
And the exception is... ? On Tue, Jun 16, 2015 at 12:34 AM, Dilipsinh Bheda < dil...@si...> wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/ > > > Hello all, > > > > I created code as below: > > > > settings = new FIX::SessionSettings("MT4FIX.cfg"); > > storeFactory = new FIX::FileStoreFactory(*settings); > > logFactory = new FIX::FileLogFactory(*settings); > > initiator = new FIX::SocketInitiator(fixApp, *storeFactory, > *settings, *logFactory); > > > > ‘Tradeclient’ example runs perfect with ‘MT4FIX.cfg’….. > > > > Application builds successful, but on debugging application, got exception > on ‘initiator’… > > And on running EXE directly gives “APPCRASH” error….. > > > > Need help…. > > > > > > Regards > > Dilip > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > -- Grant Birchmeier *Connamara Systems, LLC* *Made-To-Measure Trading Solutions.* Exactly what you need. No more. No less. http://connamara.com |
From: Dilipsinh B. <dil...@si...> - 2015-06-17 05:25:16
|
On analysis, I found that the exception thrown is due ‘SenderCompID’. For this specific ‘SenderCompID’ = ‘order.TOPFX238.1’ (for testing) , Initiator throw exception (even in tradeclient). Don’t know why… What we can conclude for this reason…. ( is it a quickfix bug….. ) Regards Dilip From: Grant Birchmeier [mailto:gbi...@co...] Sent: Wednesday, June 17, 2015 1:35 AM To: Dilipsinh Bheda Cc: Mailing Lists Subject: Re: [Quickfix-developers] Error in using pointer of Initiator And the exception is... ? On Tue, Jun 16, 2015 at 12:34 AM, Dilipsinh Bheda <dil...@si...> wrote: QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/ Hello all, I created code as below: settings = new FIX::SessionSettings("MT4FIX.cfg"); storeFactory = new FIX::FileStoreFactory(*settings); logFactory = new FIX::FileLogFactory(*settings); initiator = new FIX::SocketInitiator(fixApp, *storeFactory, *settings, *logFactory); ‘Tradeclient’ example runs perfect with ‘MT4FIX.cfg’….. Application builds successful, but on debugging application, got exception on ‘initiator’… And on running EXE directly gives “APPCRASH” error….. Need help…. Regards Dilip ------------------------------------------------------------------------------ _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers -- Grant Birchmeier Connamara Systems, LLC Made-To-Measure Trading Solutions. Exactly what you need. No more. No less. http://connamara.com |
From: Grant B. <gbi...@co...> - 2015-06-17 14:17:22
|
WHAT IS THE EXCEPTION On Wed, Jun 17, 2015 at 12:24 AM, Dilipsinh Bheda < dil...@si...> wrote: > On analysis, I found that the exception thrown is due ‘SenderCompID’. > > > > For this specific ‘SenderCompID’ = ‘order.TOPFX238.1’ (for testing) , > Initiator throw exception (even in tradeclient). > > Don’t know why… > > What we can conclude for this reason…. ( is it a quickfix bug….. ) > > > > Regards > > Dilip > > > > > > > > *From:* Grant Birchmeier [mailto:gbi...@co...] > *Sent:* Wednesday, June 17, 2015 1:35 AM > *To:* Dilipsinh Bheda > *Cc:* Mailing Lists > *Subject:* Re: [Quickfix-developers] Error in using pointer of Initiator > > > > And the exception is... ? > > > > On Tue, Jun 16, 2015 at 12:34 AM, Dilipsinh Bheda < > dil...@si...> wrote: > > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/ > > Hello all, > > > > I created code as below: > > > > settings = new FIX::SessionSettings("MT4FIX.cfg"); > > storeFactory = new FIX::FileStoreFactory(*settings); > > logFactory = new FIX::FileLogFactory(*settings); > > initiator = new FIX::SocketInitiator(fixApp, *storeFactory, > *settings, *logFactory); > > > > ‘Tradeclient’ example runs perfect with ‘MT4FIX.cfg’….. > > > > Application builds successful, but on debugging application, got exception > on ‘initiator’… > > And on running EXE directly gives “APPCRASH” error….. > > > > Need help…. > > > > > > Regards > > Dilip > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > > > > -- > > Grant Birchmeier > > *Connamara Systems, LLC* > > *Made-To-Measure Trading Solutions.* > > Exactly what you need. No more. No less. > > http://connamara.com > -- Grant Birchmeier *Connamara Systems, LLC* *Made-To-Measure Trading Solutions.* Exactly what you need. No more. No less. http://connamara.com |
From: Dilipsinh B. <dil...@si...> - 2015-06-18 05:32:17
|
Exception from Visual Studio: “Unhandled exception at 0x005a6731 in MT4FIXSample.exe: 0xC0000005: Access violation writing location 0x000000e1.” Regards Dilip From: Grant Birchmeier [mailto:gbi...@co...] Sent: Wednesday, June 17, 2015 7:47 PM To: Dilipsinh Bheda Cc: Mailing Lists Subject: Re: [Quickfix-developers] Error in using pointer of Initiator WHAT IS THE EXCEPTION On Wed, Jun 17, 2015 at 12:24 AM, Dilipsinh Bheda <dil...@si...> wrote: On analysis, I found that the exception thrown is due ‘SenderCompID’. For this specific ‘SenderCompID’ = ‘order.TOPFX238.1’ (for testing) , Initiator throw exception (even in tradeclient). Don’t know why… What we can conclude for this reason…. ( is it a quickfix bug….. ) Regards Dilip From: Grant Birchmeier [mailto:gbi...@co...] Sent: Wednesday, June 17, 2015 1:35 AM To: Dilipsinh Bheda Cc: Mailing Lists Subject: Re: [Quickfix-developers] Error in using pointer of Initiator And the exception is... ? On Tue, Jun 16, 2015 at 12:34 AM, Dilipsinh Bheda <dil...@si...> wrote: QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/ Hello all, I created code as below: settings = new FIX::SessionSettings("MT4FIX.cfg"); storeFactory = new FIX::FileStoreFactory(*settings); logFactory = new FIX::FileLogFactory(*settings); initiator = new FIX::SocketInitiator(fixApp, *storeFactory, *settings, *logFactory); ‘Tradeclient’ example runs perfect with ‘MT4FIX.cfg’….. Application builds successful, but on debugging application, got exception on ‘initiator’… And on running EXE directly gives “APPCRASH” error….. Need help…. Regards Dilip ------------------------------------------------------------------------------ _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers -- Grant Birchmeier Connamara Systems, LLC Made-To-Measure Trading Solutions. Exactly what you need. No more. No less. http://connamara.com -- Grant Birchmeier Connamara Systems, LLC Made-To-Measure Trading Solutions. Exactly what you need. No more. No less. http://connamara.com |
From: Dilipsinh B. <dil...@si...> - 2015-06-19 09:55:47
|
Hello, On deleting ‘SocketInitiator’ pointer gives memory error as below: ‘HEAP CORRUPTION DETECTED: after Normal block (#1463) at 0x007CC448. CRT detected that the application wrote to memory after end of heap buffer.’ My code: if(initiator) { initiator->stop(); // stop FIX service.... if(!(initiator->isStopped())) initiator->stop(true); //initiator->~SocketInitiator(); -> delete initiator; initiator = NULL; } |
From: Dilipsinh B. <dil...@si...> - 2015-06-18 05:36:22
|
Cursor stops at below function: void Initiator::start() throw ( ConfigError, RuntimeError ) { -> m_stop = false; . . . . . . } From: Dilipsinh Bheda [mailto:dil...@si...] Sent: Thursday, June 18, 2015 11:02 AM To: 'Grant Birchmeier' Cc: qui...@li... Subject: RE: [Quickfix-developers] Error in using pointer of Initiator Exception from Visual Studio: “Unhandled exception at 0x005a6731 in MT4FIXSample.exe: 0xC0000005: Access violation writing location 0x000000e1.” Regards Dilip From: Grant Birchmeier [mailto:gbi...@co...] Sent: Wednesday, June 17, 2015 7:47 PM To: Dilipsinh Bheda Cc: Mailing Lists Subject: Re: [Quickfix-developers] Error in using pointer of Initiator WHAT IS THE EXCEPTION On Wed, Jun 17, 2015 at 12:24 AM, Dilipsinh Bheda <dil...@si...> wrote: On analysis, I found that the exception thrown is due ‘SenderCompID’. For this specific ‘SenderCompID’ = ‘order.TOPFX238.1’ (for testing) , Initiator throw exception (even in tradeclient). Don’t know why… What we can conclude for this reason…. ( is it a quickfix bug….. ) Regards Dilip From: Grant Birchmeier [mailto:gbi...@co...] Sent: Wednesday, June 17, 2015 1:35 AM To: Dilipsinh Bheda Cc: Mailing Lists Subject: Re: [Quickfix-developers] Error in using pointer of Initiator And the exception is... ? On Tue, Jun 16, 2015 at 12:34 AM, Dilipsinh Bheda <dil...@si...> wrote: QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/ Hello all, I created code as below: settings = new FIX::SessionSettings("MT4FIX.cfg"); storeFactory = new FIX::FileStoreFactory(*settings); logFactory = new FIX::FileLogFactory(*settings); initiator = new FIX::SocketInitiator(fixApp, *storeFactory, *settings, *logFactory); ‘Tradeclient’ example runs perfect with ‘MT4FIX.cfg’….. Application builds successful, but on debugging application, got exception on ‘initiator’… And on running EXE directly gives “APPCRASH” error….. Need help…. Regards Dilip ------------------------------------------------------------------------------ _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers -- Grant Birchmeier Connamara Systems, LLC Made-To-Measure Trading Solutions. Exactly what you need. No more. No less. http://connamara.com -- Grant Birchmeier Connamara Systems, LLC Made-To-Measure Trading Solutions. Exactly what you need. No more. No less. http://connamara.com |