Two problems with Sample and my own app
Posted: Tue Apr 17, 2012 04:59
The first problem is quite common among the beginners. But when I search the forum for any useful help, I found that the cause of the problem seems not the same.
When I build the CEGUISample.sln in premake on version of 0.7.6, most of them seem okay. I successfully compile the samples in debug\debug_static\release\release_static mode and run them, but when I finish compiling samples in releasewithsymbols mode(I found that I can only debug the sample in this mode) and run it, it crashes. The problem seems common:
Assertion failed, ms_Singleton, file D:\..\..\..\include\ceguisingleton.h, line79.
And I set the breakpoint, I found the actually crash happen at
Logger::getSingleton().logEvent("XercesParser::initialiseSchema - Attempting to load schema from file '" + schemaName + "'.");
at line 223 of CEGUIXercesParser.cpp.
I haven't do any customized configuration, I just build the CEGUI, build the CEGUIsample, compile it in releasewithsymbols mode, and it crashed.
The second problem is with my own app.
I use the sample framework in my app. I copy the project structure and develop my own app.
It was all okay until recently. But after I do some changes(I forget what change I have done ), app crashed at
wnd->subscribeEvent(Window::EventDragDropItemDropped,Event::Subscriber(&Dater::handle_ItemDropped, this));
wnd is a window, and Dater is my app inherit CEGuiSample, handle_ItemDropped is a private function in class Dater.
And the problem is Unhandled exception at 0x002e1e8f in Dater.exe: 0xC0000005: Access violation reading location 0xbaadf015 when I run it in releasewithsymbols mode(other configuration is OKAY). And if I comment out this line, the similar problem occurs in another subscribeEvent sentence.
These two problem all occur in releasewithsymbols mode, and they confuse me a lot.
Appreciate for any help.
When I build the CEGUISample.sln in premake on version of 0.7.6, most of them seem okay. I successfully compile the samples in debug\debug_static\release\release_static mode and run them, but when I finish compiling samples in releasewithsymbols mode(I found that I can only debug the sample in this mode) and run it, it crashes. The problem seems common:
Assertion failed, ms_Singleton, file D:\..\..\..\include\ceguisingleton.h, line79.
And I set the breakpoint, I found the actually crash happen at
Logger::getSingleton().logEvent("XercesParser::initialiseSchema - Attempting to load schema from file '" + schemaName + "'.");
at line 223 of CEGUIXercesParser.cpp.
I haven't do any customized configuration, I just build the CEGUI, build the CEGUIsample, compile it in releasewithsymbols mode, and it crashed.
The second problem is with my own app.
I use the sample framework in my app. I copy the project structure and develop my own app.
It was all okay until recently. But after I do some changes(I forget what change I have done ), app crashed at
wnd->subscribeEvent(Window::EventDragDropItemDropped,Event::Subscriber(&Dater::handle_ItemDropped, this));
wnd is a window, and Dater is my app inherit CEGuiSample, handle_ItemDropped is a private function in class Dater.
And the problem is Unhandled exception at 0x002e1e8f in Dater.exe: 0xC0000005: Access violation reading location 0xbaadf015 when I run it in releasewithsymbols mode(other configuration is OKAY). And if I comment out this line, the similar problem occurs in another subscribeEvent sentence.
These two problem all occur in releasewithsymbols mode, and they confuse me a lot.
Appreciate for any help.