Application Terminated.........

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

Application Terminated.........

jasindmohammeed
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html


Hi all,
i built a small application using quick fix, it behaves as acceptor, in the application during the instantiation of the SocketAcceptor class the program is getting terminated without any error or warning. Since there is no warning or error messages i have no idea whats going on inside, i tried to debug my application and found the line where program is getting terminated......

Below is the line 
m_application.toAdmin( message,m_sessionID );
 Session.cpp contains this line

please help if there is a way to fix this.....

Kind Regards 
Mohammed Jasind

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Quickfix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Application Terminated.........

Evans, Jack (IT Woodbridge)
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html

You may need to trap the "logon" message and supply the username and password (or anything else specific to the logon process).  At least that's what I did.  Sorry it's VB and a little noisy, I copied it directly from working code.  Note I'm pulling the values from a config file.

            If TypeOf message Is QuickFix44.Logon Then
                Dim myMessage As QuickFix44.Logon = CType(message, QuickFix44.Logon)
                If sessionID.getSessionQualifier = "1" AndAlso _
                   sessionID.getSenderCompID = AppSettings.SenderCompID_1 AndAlso _
                   sessionID.getTargetCompID = AppSettings.TargetCompID_1 Then
                    myMessage.setField(QuickFix.SenderSubID.FIELD, AppSettings.SenderSubID_1) 'SenderSubID
                    myMessage.set(New QuickFix.Username(AppSettings.Username_1)) 'UserName
                    myMessage.set(New QuickFix.Password(AppSettings.Password_1)) 'Password
                    myMessage.set(New QuickFix.ResetSeqNumFlag(True))
                    WriteToLog(String.Format("LogonRequest: {0}", myMessage), LogMessageTypes.Verbose, False)
                End If

-----Original Message-----
From: Mohammed Jasind [mailto:[hidden email]]
Sent: Friday September 20, 2013 10:45 AM
To: [hidden email]
Cc: [hidden email]
Subject: [Quickfix-users] Application Terminated.........

QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html

This e-mail and any attachments are for the sole use of the intended recipient(s) and may contain information that is confidential.  If you are not the intended recipient(s) and have received this e-mail in error, please immediately notify the sender by return e-mail and delete this e-mail from your computer. Any distribution, disclosure or the taking of any other action by anyone other than the intended recipient(s) is strictly prohibited

.

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Quickfix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Application Terminated.........

Mike Gatny
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html


namespace AppCorLib
{
QuickFixInterface::QuickFixInterface(std::string configFile,int port,std::string host,int type):Interface::Interface(port,host),mSettings(configFile),mScreenlog(mSettings),
mStoreFactory(mSettings),mAcceptor(mApplication,mStoreFactory,mSettings)
{

This looks like a C++ initialization mistake to me -- you need to declare mApplication *before* mAcceptor in your header file.  Currently you have it the other way around, which means that mApplication has not been constructed at the time you pass it to mAcceptor's constructor.

--
Mike Gatny
Connamara Systems, LLC


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Quickfix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-users
Loading...