Re: [Quickfix-developers] .Net WinApp Crashes
Brought to you by:
orenmnero
From: John T. <joh...@ea...> - 2008-02-01 03:07:56
|
Thanks Shane. It worked like a charm. John Turner wrote: > > Hi Everyone, > > I am building a Windows Application using .Net Visual Studio 2008. My > Application keeps crashing. I am able to log on to my test session, but > after the first message the application simply crashes. Oddly enough, my > console application works wonderfully and does not have any problems. Has > anyone else encountered this issue in .NET Windows Application using QF? > Is it where I place the main entry for QF that matters? For example in > Program as opposed to below: > > public frmGlobalLinkMain() > { > InitializeComponent(); > > > > } > > public class Application : QuickFix.MessageCracker, QuickFix.Application > { > public void onCreate(SessionID sessionID) { } > public void onLogon(SessionID sessionID) { } > public void onLogout(SessionID sessionID) { } > public void toAdmin(QuickFix.Message message, SessionID > sessionID) { } > public void fromAdmin(QuickFix.Message message, SessionID > sessionID) { } > public void toApp(QuickFix.Message message, SessionID > sessionID) { } > public void fromApp(QuickFix.Message message, SessionID > sessionID) > { > crack(message, sessionID); > } > > public override void onMessage(QuickFix42.ExecutionReport > message, SessionID sessionID) > { > > } > > public override void onMessage(QuickFix42.OrderCancelReject > message, SessionID sessionID) > { > } > > } > > > private void Form1_Load(object sender, EventArgs e) > { > > > SessionSettings settings = new > SessionSettings("C:\\GlobalLinkConfig\\configs\\Initiator\\Initiator.config"); > Application application = new Application(); > FileStoreFactory storeFactory = new > FileStoreFactory(settings); > //ScreenLogFactory logFactory = new ScreenLogFactory(true, > true, false); > MessageFactory messageFactory = new DefaultMessageFactory(); > ThreadedSocketInitiator initiator = new > ThreadedSocketInitiator(application, storeFactory, settings, > messageFactory); > > initiator.start(); > > } > > Anyhow, I am seriously befuddled. Any guidance would be helpful. > > Thanks, > John > -- View this message in context: http://www.nabble.com/.Net-WinApp-Crashes-tp15153684p15219838.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |