Program task doesn't close fully

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Acki

Program task doesn't close fully

Post by Acki »

Hi,
I've got another prob (bug?):

Under Win98se my prog doesn't close correctly...
It looks like it does (the prog ends and everything seems ok), but when I open the task manager, my prog is still running !!!

It's a simple Win32 prog.
I've got this event receiver:

class MyEventReceiver : public IEventReceiver{
public:
virtual bool OnEvent(SEvent event){
if (event.EventType == EET_KEY_INPUT_EVENT
&& !event.KeyInput.PressedDown){
if(event.KeyInput.Key == KEY_ESCAPE){
device->closeDevice();
return true;
}
}
if (camera)
return camera->OnEvent(event);
return false;
}
};

and my prog closes as described in the tutorials:
.
.
.
while(device->run()){
driver->beginScene(true, true, SColor(255, R, G, B));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
return !device->drop();
}

Under W2K it closes correctly...

Any idears ???
Guest

Post by Guest »

Now I could be wrong but I think if a window does not have a parent windows 98 handels the return statment incorrectly. try dropping from somewhere outside the return statement.
Acki

Post by Acki »

You mean because the "return !device.drop;" ???
No, that doesn't matter, I tried the normal dropping, too...
device.drop;
return 0;

Maybe it's because I close the device within the event receiver?
I'll try to close it outside the receiver...

CU
Acki

Post by Acki »

No, it doesn't matter...
WIth W98 the task doesn't close correctly...

no solutions ???
Post Reply