Application Crash
Posted: Thu Jun 17, 2010 14:54
Hi!
This is my first Program in CEGUI. My application crashes both in debug and release modes.Here is the code:
I got the following Exception:
Unhandled exception at 0x76aafbae in CricketGUI.exe: Microsoft C++ exception: CEGUI::GenericException at memory location 0x0015dbdc..
When I break the exception, program control goes to CEGUIDynamicModule.cpp file. What to do to run my application?
This is my first Program in CEGUI. My application crashes both in debug and release modes.Here is the code:
Code: Select all
#include "irrlicht.h"
#include "CEGUI.h"
#include "CEGUIIrrlichtRenderer.h"
#include "CEGUIWindowManager.h"
using namespace CEGUI;
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
int main ()
{
IrrlichtDevice* device = createDevice(EDT_BURNINGSVIDEO, core::dimension2d<u32>(800, 600), 16, false);
CEGUI::IrrlichtRenderer &myRenderer = CEGUI::IrrlichtRenderer::bootstrapSystem(*device);
IVideoDriver* driver = device->getVideoDriver();
driver->beginScene(true, true, SColor(255, 255, 0, 0));
ISceneManager* smgr = device->getSceneManager();
WindowManager* wmgr = WindowManager::getSingletonPtr();
Window* myRoot = wmgr->createWindow(CEGUI::String("Default Window"), CEGUI::String("root"));
System::getSingleton().setGUISheet(myRoot);
FrameWindow* fWnd = (FrameWindow*)wmgr->createWindow("TaharezLook/FrameWindow", "testWindow");
myRoot->addChildWindow(fWnd);
while(device->run() && driver)
{
if(device->isWindowActive())
{
smgr->drawAll();
CEGUI::System::getSingleton().renderGUI();
driver->endScene();
}
}
device->drop();
return 0;
}
I got the following Exception:
Unhandled exception at 0x76aafbae in CricketGUI.exe: Microsoft C++ exception: CEGUI::GenericException at memory location 0x0015dbdc..
When I break the exception, program control goes to CEGUIDynamicModule.cpp file. What to do to run my application?