Re: [Quickfix-developers] Sychronization in FIX application
Brought to you by:
orenmnero
|
From: Oren M. <ore...@ya...> - 2003-07-11 20:31:48
|
Well the session class itself should be reentrant. You do need to keep in mind though that fromApp and fromAdmin can most definately be called by another or multiple threads. If fromApp and fromAdmin share any resources with other methods, those resources should be protected. --- Jo Janssens <jo...@tr...> wrote: > Hello, > I have been struggling with NullReferenceExceptions > that occur at > seemingly random times in my QuickFix application, > when attempting to > send a message (sendToTarget). > > Is it necessary to synchronize access to the Session > class and the > onApp, onAdmin, etc callbacks? > > I am calling sendToTarget from a thread I create > myself and handling > incoming messages on the QuickFix initiator thread, > and I wonder if this > could be the cause of my problems. > > Thanks, > Jo Janssens > Telluride Asset Management > > __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |