stop the device?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Zizilamoroso
Posts: 17
Joined: Thu Jan 15, 2004 10:19 am
Location: Brussels
Contact:

stop the device?

Post by Zizilamoroso »

I used to define my main loop like this. I copied this from a tutorial.

Code: Select all

while(device->run())
{
	driver->beginScene(true,true,SColor(0,100,100,100));
	smgr->drawAll();
	driver->endScene();
}
This worked fine in 0.4, but I've upgraded to 0.4.2 and this loop never exits anymore! If you close the app (alt-f4), the loop continues.

Has IrrlichtDevice.Run() changed? Or is this a bug?

os=win98/2
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Seems to be a bug in the implementation of win98. I already heard of that, and I try to fix it with the next release. sorry.
Zizilamoroso
Posts: 17
Joined: Thu Jan 15, 2004 10:19 am
Location: Brussels
Contact:

Post by Zizilamoroso »

There's something nasty with PM_QS_INPUT, I've commented it out, restored the run() function to 0.4 and it works again.

Is PM_QS_INPUT anything important?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Yes, I found the same thing. I now check if the OS is NT or better and disable getting Messages with PM_QS_INPUT first. It's just a way to get mouse and keyboard input earlier than all other messages. Win98 does not seem to support this, although the msdn documentation says so.
Post Reply