[RESOLVED] Crash during initialization

DarkHorizon

09-02-2009 17:54:13

Hi all,

<<<<<<
Windows XP SP2
Ogre3D v1.6.0 SDK
MyGUI SVN v2.3.0
Code::Blocks 8.02
MingW/gcc 3.4.5
>>>>>>

I'm getting a weird crash during initialization. I've trailed the bug down thru MyGUI's code, to the following:

+ (my code) m_lpMyGUI->initialise(m_lpOgreRenderWindow);
++ (MyGUI::Gui) Gui::initialise()
+++ mWidgetManager = new WidgetManager();
++++ mIntegratedFactoryList.insert(new factory::WindowFactory());
+++++ WindowFactory::WindowFactory()
(this is as far as the initialization gets).

The following is a post of the MyGUI logfile (with edited paths for brevity):
----------------------------------------------------------------------------------------------------------------------------------
loging report for : 02/09/2009 12:28:22
----------------------------------------------------------------------------------------------------------------------------------

12:28:22 | General | Info | * Initialise: Gui | \path\to\MyGUIEngine\src\MyGUI_Gui.cpp | 40
12:28:22 | General | Info | * MyGUI version 2.3.0 | \path\to\MyGUIEngine\src\MyGUI_Gui.cpp | 44
12:28:22 | General | Info | Viewport : 960 600 | \path\to\MyGUIEngine\src\MyGUI_Gui.cpp | 54
12:28:22 | General | Info | * Initialise: ResourceManager | \path\to\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 26
12:28:22 | General | Info | ResourceManager successfully initialized | \path\to\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 38
12:28:22 | General | Info | * Initialise: LayerManager | \path\to\MyGUIEngine\src\MyGUI_LayerManager.cpp | 26
12:28:22 | General | Info | LayerManager successfully initialized | \path\to\MyGUIEngine\src\MyGUI_LayerManager.cpp | 58
12:28:22 | General | Info | * Initialise: WidgetManager | \path\to\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 47
12:28:22 | General | Info | * Register widget factory 'Widget' | \path\to\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 103
12:28:22 | General | Info | * Register widget factory 'Button' | \path\to\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 103


I just updated from SVN today, recompiled, then recompiled my own project, and am still seeing this problem.

[RESOLVED]

I had been compiling MyGUI as a static lib (which had been working). I just recompiled as a dynamic DLL, and the problem magically went away... Weird.