[SOLVED] Closing my program?

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
Joe_Oliveri
Posts: 448
Joined: Tue Oct 05, 2004 3:24 am
Location: Boston, MA

[SOLVED] Closing my program?

Post by Joe_Oliveri »

What would I call in my keyboard input code to close the app, I have tryed many things on my own but none see to work. Any one got a good one? I am using Dev-C++ for this application.
Irrlicht Moderator || Game Designer
Learn the basics at </dream.in.code>
eXodus
Posts: 320
Joined: Tue Jan 04, 2005 10:07 am
Location: Canada
Contact:

Post by eXodus »

Try out calling this function :

Code: Select all

device->closeDevice();
If you're using a standard render loop, this will make

Code: Select all

device->run()
return false and exit the loop.
corran
Posts: 8
Joined: Wed Jan 12, 2005 6:39 pm

Post by corran »

i have that device->Run() in my while loop but the every time i clost my program it has an enexpected error
and access violation i think
as far as i can tell the error occurs within the irrlicht engine
what can i do about this
eXodus
Posts: 320
Joined: Tue Jan 04, 2005 10:07 am
Location: Canada
Contact:

Post by eXodus »

We will need code to help you debug it :)
SARIN
Posts: 139
Joined: Fri Oct 29, 2004 3:53 am

Post by SARIN »

device->drop();

u should put this after the device->run loop.
Joe_Oliveri
Posts: 448
Joined: Tue Oct 05, 2004 3:24 am
Location: Boston, MA

Post by Joe_Oliveri »

Thank you I see what I did wrong. I forgot to call this out side of my main loop.

Code: Select all

IrrlichtDevice* irrDevice = 0;
Its always the little things that screw you up!
Irrlicht Moderator || Game Designer
Learn the basics at </dream.in.code>
Guest

Post by Guest »

exit(0)
Post Reply