{{Quickfixn}} reading feed to system.console

Walter Robert Ditzler ditwal001 at gmail.com
Thu Mar 7 04:26:18 PST 2013


Hi again,

question: is quickfix/n thread safe? When I try, for testing, to read
incoming data from field 270 I always get error and system logs out. When I
uncomment it in FromApp loging runs and I can see feed coming in (on
firewall with tcpdump).

Any idea?

Thanks a lot walter.


Error in visual studio
***
A first chance exception of type
'System.Collections.Generic.KeyNotFoundException' occurred in System.dll
A first chance exception of type 'QuickFix.FieldNotFoundException' occurred
in QuickFix.dll
A first chance exception of type
'System.Collections.Generic.KeyNotFoundException' occurred in System.dll
A first chance exception of type 'QuickFix.FieldNotFoundException' occurred
in QuickFix.dll
A first chance exception of type 'System.Net.Sockets.SocketException'
occurred in System.dll
The thread '<No Name>' (0xfa8) has exited with code 0 (0x0).
***

My application class
***
public class Application : MessageCracker, IApplication
    {
        public void FromApp(Message msg, SessionID sessionID)
        {
            Console.WriteLine(msg.GetDecimal(270).ToString());
        }

        public void OnCreate(SessionID sessionID) { }
        public void OnLogout(SessionID sessionID) { }
        public void OnLogon(SessionID sessionID) { }
        public void FromAdmin(Message msg, SessionID sessionID) { }
        
        public void ToAdmin(Message msg, SessionID sessionID)
        {
            QuickFix.Fields.Username _Username = new
QuickFix.Fields.Username("username");
            QuickFix.Fields.Password _Password = new
QuickFix.Fields.Password("password");
            msg.SetField(_Username);
            msg.SetField(_Password);
        }
        
        public void ToApp(Message msg, SessionID sessionID) { }
    }
***



More information about the Quickfixn mailing list