Error in using pointer of Initiator

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error in using pointer of Initiator

Dilipsinh Bheda
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in using pointer of Initiator

Grant Birchmeier
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/


And the exception is... ?

On Tue, Jun 16, 2015 at 12:34 AM, Dilipsinh Bheda <[hidden email]> 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
[hidden email]
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.

------------------------------------------------------------------------------

_______________________________________________
Quickfix-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in using pointer of Initiator

Dilipsinh Bheda
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/


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:[hidden email]]
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 <[hidden email]> 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
[hidden email]
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.


------------------------------------------------------------------------------

_______________________________________________
Quickfix-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in using pointer of Initiator

Grant Birchmeier
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/


WHAT IS THE EXCEPTION

On Wed, Jun 17, 2015 at 12:24 AM, Dilipsinh Bheda <[hidden email]> 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:[hidden email]]
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 <[hidden email]> 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
[hidden email]
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.




--
Grant Birchmeier
Connamara Systems, LLC
Made-To-Measure Trading Solutions.
Exactly what you need. No more. No less.

------------------------------------------------------------------------------

_______________________________________________
Quickfix-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in using pointer of Initiator

Dilipsinh Bheda
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/


Exception from Visual Studio:

“Unhandled exception at 0x005a6731 in MT4FIXSample.exe: 0xC0000005: Access violation writing location 0x000000e1.”

Regards

Dilip

 

From: Grant Birchmeier [mailto:[hidden email]]
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 <[hidden email]> 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:[hidden email]]
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 <[hidden email]> 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
[hidden email]
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.



 

--

Grant Birchmeier

Connamara Systems, LLC

Made-To-Measure Trading Solutions.

Exactly what you need. No more. No less.


------------------------------------------------------------------------------

_______________________________________________
Quickfix-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in using pointer of Initiator

Dilipsinh Bheda
In reply to this post by Grant Birchmeier
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/


Cursor stops at below function:

 

void Initiator::start() throw ( ConfigError, RuntimeError )

    {

->  m_stop = false;

    . . .

    . . .

    }

 

From: Dilipsinh Bheda [mailto:[hidden email]]
Sent: Thursday, June 18, 2015 11:02 AM
To: 'Grant Birchmeier'
Cc: [hidden email]
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:[hidden email]]
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 <[hidden email]> 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:[hidden email]]
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 <[hidden email]> 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
[hidden email]
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.



 

--

Grant Birchmeier

Connamara Systems, LLC

Made-To-Measure Trading Solutions.

Exactly what you need. No more. No less.


------------------------------------------------------------------------------

_______________________________________________
Quickfix-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in using pointer of Initiator

Dilipsinh Bheda
In reply to this post by Grant Birchmeier
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/


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;

}

 


------------------------------------------------------------------------------

_______________________________________________
Quickfix-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
Loading...