My program is crashing during startup in generated code before main is called.
Dialog box says: "The application failed to initialize properly (0x80000003). Click OK to terminate the application"
This appears to be a bug in the compiler. The code is included below. It breaks at closing brace of the constructor when calls the destructor the temporary string that was passed to addExceptionFactory as the first arg.
Ice version 3.3.1Code:class __F__xml__XmlParseException__Init { public: __F__xml__XmlParseException__Init() { ::IceInternal::factoryTable->addExceptionFactory("::xml::XmlParseException", ::xml::XmlParseException::ice_factory()); } // <-- Crash here destroying tmp string!! ~__F__xml__XmlParseException__Init() { ::IceInternal::factoryTable->removeExceptionFactory("::xml::XmlParseException"); } }; static __F__xml__XmlParseException__Init __F__xml__XmlParseException__i;
Compiler version: Visual C++ 2008 express edition.
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
Compiler command line args:-nologo -W3 -WX -GR -EHa -FD -D_CONSOLE -GL /RTCu /MP2 -GF -Gm -O2 -MD
Debug version: -nologo -W3 -WX -GR -EHa -FD -D_CONSOLE -GL /RTCu /MP2 -Zi -D_DEBUG -Od -MDd

Reply With Quote
