No, its not the line above causing trouble, its what happens afterwards...
I have 2 windows that are being instanciated through classes of my own, console and alertbox.
Console gets instantiated from a layout, then calls the Console::setEvents() function to set all the events (i only have one at the moment, which is the one above).
After its been called from a layout, it is added as a child to root. When that's done, the alertbox layout gets called then added as a child to root, but when it does this action, it returns an error which gets caught by my try-catch and creates an error on screen.
this is the log:
02/08/2005 16:29:21 (InfL2) ---- Beginning loading of GUI layout from '../layouts/Console.layout' ----
02/08/2005 16:29:21 (InfL2) Window 'Console__auto_titlebar__' of type 'TaharezLook/Titlebar' has been created.
02/08/2005 16:29:21 (InfL2) Window 'Console__auto_closebutton__' of type 'TaharezLook/CloseButton' has been created.
02/08/2005 16:29:21 (InfL2) Window 'Console' of type 'TaharezLook/FrameWindow' has been created.
02/08/2005 16:29:21 (InfL2) Window 'ConsoleOutput__auto_vscrollbar____auto_thumb__' of type 'TaharezLook/VerticalScrollbarThumb' has been created.
02/08/2005 16:29:21 (InfL2) Window 'ConsoleOutput__auto_vscrollbar____auto_incbtn__' of type 'TaharezLook/Button' has been created.
02/08/2005 16:29:21 (InfL2) Window 'ConsoleOutput__auto_vscrollbar____auto_decbtn__' of type 'TaharezLook/Button' has been created.
02/08/2005 16:29:21 (InfL2) Window 'ConsoleOutput__auto_vscrollbar__' of type 'TaharezLook/VerticalScrollbar' has been created.
02/08/2005 16:29:21 (InfL2) Window 'ConsoleOutput__auto_hscrollbar____auto_thumb__' of type 'TaharezLook/HorizontalScrollbarThumb' has been created.
02/08/2005 16:29:21 (InfL2) Window 'ConsoleOutput__auto_hscrollbar____auto_incbtn__' of type 'TaharezLook/Button' has been created.
02/08/2005 16:29:21 (InfL2) Window 'ConsoleOutput__auto_hscrollbar____auto_decbtn__' of type 'TaharezLook/Button' has been created.
02/08/2005 16:29:21 (InfL2) Window 'ConsoleOutput__auto_hscrollbar__' of type 'TaharezLook/HorizontalScrollbar' has been created.
02/08/2005 16:29:21 (InfL2) Window 'ConsoleOutput' of type 'TaharezLook/MultiLineEditbox' has been created.
02/08/2005 16:29:21 (InfL2) Window 'ConsoleCommandBox' of type 'TaharezLook/Editbox' has been created.
02/08/2005 16:29:21 (InfL2) Window 'ConsoleSendButton' of type 'TaharezLook/Button' has been created.
02/08/2005 16:29:21 (InfL1) ---- Successfully completed loading of GUI layout from '../layouts/Console.layout' ----
02/08/2005 16:29:21 (InfL2) ---- Beginning loading of GUI layout from '../layouts/AlertBox.layout' ----
02/08/2005 16:29:21 (InfL2) Window 'AlertBox__auto_titlebar__' of type 'TaharezLook/Titlebar' has been created.
02/08/2005 16:29:21 (InfL2) Window 'AlertBox__auto_closebutton__' of type 'TaharezLook/CloseButton' has been created.
02/08/2005 16:29:21 (InfL2) Window 'AlertBox' of type 'TaharezLook/FrameWindow' has been created.
02/08/2005 16:29:21 (InfL1) ---- Successfully completed loading of GUI layout from '../layouts/AlertBox.layout' ----
this is the call stack:
> PCTGUI.exe!GUIWindow::init(CEGUI::String type={...}, CEGUI::String name={...}, CEGUI::String layout={...}, CEGUI::String parent={...}, CEGUI::MetricsMode mode=Absolute, CEGUI::Size size={...}, CEGUI::Vector2 point={...}) Line 49 C++
PCTGUI.exe!Engine::init() Line 76 + 0x133 C++
PCTGUI.exe!WinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00151f12, int nCmdShow=1) Line 37 + 0xb C++
PCTGUI.exe!WinMainCRTStartup() Line 251 + 0x30 C
kernel32.dll!7c816d4f()
ntdll.dll!7c915b4f()
kernel32.dll!7c8399f3()
There is certainly something funky here...