I used this code:
Code: Select all
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
int main(){
IrrlichtDevice *device = createDevice(EDT_DIRECT3D9);
IVideoDriver* driver = device->getVideoDriver();
IGUIEnvironment* guienv = device->getGUIEnvironment();
guienv->addMessageBox(L"aaa", L"bbb");
while(device->run()){
driver->beginScene(true, true, SColor(255,255,255,255));
guienv->drawAll();
driver->endScene();
}
device->drop();
return 0;
}
if I press "Escape" the message box closes...
but if I then press "Escape" two times more the app crashes with the standard Windows error message ("The App has encountered a problem...") and the console tells "Process returned -1073741819 (0xC0000005)" !!!
this doesn't happen if I close the box via mouse click on "OK"...