Re: [Quickfix-users] Create Logon Message
Brought to you by:
orenmnero
From: EclipseCap <tob...@ec...> - 2009-08-06 13:50:34
|
A lot of that stuff is language dependent and not really a QFIX thing. For starters I believe QFix should run within its own thread as part of its startup process. So when a callback fires from the QFix side it is on the QFix's thread. In C# when going to call code on my side I do a this.BeginInvoke which should put the function you are going to call on the message queue of the thread on your side. This only applies for C# so if you are using another language I can't be of much help. public void FIXOrderFillUpdate(FIXOrderFillMessage FillMessage) { if (delFIXOrderFillUpdate != null && InvokeRequired == true) { this.BeginInvoke(delFIXOrderFillUpdate, FillMessage); } } delFIXOrderFillUpdate is a delegate I created earlier. bornlibra23 wrote: > > I have another question. How can I have callbacks delivered & executed in > a separate thread than the one that created the quickfix objects? > Thanks > bornlibra23 > -- View this message in context: http://www.nabble.com/Create-Logon-Message-tp24809985p24846833.html Sent from the QuickFIX - User mailing list archive at Nabble.com. |