subscribing events using IrrlichtRender
Posted: Tue Aug 26, 2008 18:14
Hi,
Im using VS9.0 sp1 with CEGUI 0.6.1 and everything compiles and runs fine untill i try to subscribing an event.
I downloaded and am using the precompiled package for vs9.0 of CEGUI.
My code is
The button animates when i click on it and everything but just cant subscribe an event without it getting this error
Unhandled exception at 0x006ecd84 in GUI.exe: 0xC0000005: Access violation reading location 0x00000004.
Any help would be much appreciated!
Im using VS9.0 sp1 with CEGUI 0.6.1 and everything compiles and runs fine untill i try to subscribing an event.
I downloaded and am using the precompiled package for vs9.0 of CEGUI.
My code is
Code: Select all
PushButton* btn->subscribeEvent(CEGUI::PushButton::EventClicked,
CEGUI::Event::Subscriber(&GUIManager::handleBtn, this));
Code: Select all
bool GUIManager::handleBtn(const CEGUI::EventArgs &e)
{
// Do something
return true;
}
The button animates when i click on it and everything but just cant subscribe an event without it getting this error
Unhandled exception at 0x006ecd84 in GUI.exe: 0xC0000005: Access violation reading location 0x00000004.
Any help would be much appreciated!