OrderStatusRequest.Set(Account) -- System.AccessViolationException: Attempted to read or write protected memory.
Hello I have an issue with QuickFix42.OrderStatusRequest
Sometime when I set the Account
c#
QuickFix42.
OrderStatusRequest message = new QuickFix42.OrderStatusRequest();
message.set(new QuickFix.Account(myAccount));
I see the following critical error:
Description: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at std.basic_string<char,std::char_traits<char>,std::allocator<char> >.{ctor}(basic_string<char\,std::char_traits<char>\,std::allocator<char> >* , SByte* )
at QuickFix.convertString(basic_string<char\,std::char_traits<char>\,std::allocator<char> >* , String s)
at QuickFix.mapSetString(Int32 field, String value, FieldMap* map)
at QuickFix.Message.setField(StringField field)
at QuickFix42.OrderStatusRequest.set(Account value)
Any idea? Does any one else use the OrderStatusRequest and experience the samething?
Thank you for your help
Wilhelm
I forgot to mention, I'm using QF 4.2 with C#
Thanks
Wilhelm
I have the very similar problem at ~Dictionary(). If I comment out the destructor:
~Dictionary()
{
//delete m_pUnmanaged;
}
It's not crashing anymore.
Definitely, something is wrong in Dictionary. As I understand it serves for FIX message.
The problem occurs on Windows Server 2003. At WinXP and Vista -- everything works fine.