Re: [Quickfix-developers] Strange error
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2006-02-15 04:47:27
|
I tried the code and it appears to work fine with 1.11.0. What are you
using?
--oren
John Haldi wrote:
> I'm trying to get the sample Executor application running on my
> system. I'm using VS 2005, VB, MySQL 5.0. When I attempt to create a
> very simple VB wrapper application and instantiate the object, my
> program crashes when I attempt to point the SessionSettings to the
> settings file I've create, with an "System.IO.FileNotFound exception"
> thrown.
>
> I saw on various message boards that other users had this problem in
> the past, but I couldn't find any resolution or explanation attached
> to the threads. My suspicion is that I'm doing something very stupid
> and that the error message is actually misleading, but I don't know
> what it is that I'm doing wrong. All code that I downloaded from the
> QuickFIX site built without any problems (thank you Oren).
>
> Any help would be greatly appreciated, and I apologize if this isn't
> the proper forum for a message of this type. Code attached.
>
> Many thanks,
>
> John
>
> --------------------------------------
> John Haldi
> Allagash Trading, LLC
> 120 Broadway, 20th Floor
> New York, NY 10271
> 212.433.3958
> jo...@al... <mailto:jo...@al...>
>
>
>
>
>------------------------------------------------------------------------
>
> Public Sub CreateTheAcceptor()
>
> Try
>
> Dim sessionSettings As New SessionSettings("C:\quickfixsettings.cfg")
> Dim application As New Application
> Dim storeFactory As New FileStoreFactory(sessionSettings)
> Dim messageFactory As New DefaultMessageFactory
> Dim logFactory As New ScreenLogFactory(True, True, True)
> Dim acceptor As New SocketAcceptor(application, storeFactory, sessionSettings, logFactory, messageFactory)
>
> acceptor.start()
> Console.WriteLine("press <enter> to quit")
> Console.Read()
> acceptor.stop()
> Catch e As QuickFix.RuntimeError
> MsgBox(e.Message)
>
> End Try
> End Sub
>End Class
>
|