Re: [Quickfix-developers] A buffer overrun has occurred
Brought to you by:
orenmnero
From: Sibte A. <si...@gm...> - 2008-05-15 19:58:53
|
This is probably occurring because SessionSetting s will declare an uninitialized object (default constructer is empty). And then when you call operater>> on it, its assuming that s is initialized. Trying initializing s by passing creating with with either of these two constructors: SessionSettings( std::istream& stream ) SessionSettings( const std::string& file ) BTW I am still confused at what you are trying to do. Should you be doing SessionSetting s(cfgstring) instead? thanks, -- Sibte On Thu, May 15, 2008 at 2:03 PM, Alessandro Holanda <roo...@gm...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > A buffer overrun has occurred in AERoteadorFront.exe which has corrupted > the program's internal state. > > Source Code: > > std::stringstream cfgstring; > cfgstring > << "[DEFAULT]" << std::endl > << "ConnectionType=" << "acceptor" << std::endl > << "SocketAcceptPort=" << "5001" << std::endl > << "SocketReuseAddress=" << "Y" << std::endl > << "StartTime=" << "00:00:00" << std::endl > << "EndTime=" << "00:00:00" << std::endl > << std::endl > << "[SESSION]" << std::endl > << "BeginString=" << "FIX.4.4" << std::endl > << "SenderCompID=" << "VENDOR" << std::endl > << "TargetCompID=" << "CLIENT1" << std::endl > << "FileStorePath=" << "store" << std::endl > //<< "DataDictionary=" << "../spec/FIX44BMF.xml" << std::endl > << std::endl; > > FIX::SessionSettings s; > > cfgstring >> s; // <- A Buffer Overrun ocurr there > > Anyone can help me. > > Thanks > > Alessandro > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |