[Quickfix-users] Heap corruption in SocketInitiator destructor
Brought to you by:
orenmnero
From: Sergey A. <s.a...@gm...> - 2008-08-27 08:10:44
|
Hi, This problem persists only in a big multithreaded application, thats why i can't provide a minimal code. There is no such problem in this application when i'am not using initiator, and there is no such problem when i'am using initiator in small test application. The problem is: After calling FIX::SocketInitiator destructor "Heap corruption error" pops up no matter where destructor was called, even if it was called immediately after constructor. For example: m_pfixSessionSettings = new FIX::SessionSettings(stream); m_pfixStoreFactory = new FIX::FileStoreFactory(*m_pfixSessionSettings); m_pfixLogFactory = new FIX::FileLogFactory(*m_pfixSessionSettings); m_pfixIni = new FIX::SocketInitiator(*m_pfixApp, *m_pfixStoreFactory, *m_pfixSessionSettings, *m_pfixLogFactory); delete m_pfixIni; It doesnt matter whether it was created in dynamic or static way. So, can you provide me with any general clues explaining why this is happening? |