Page 1 of 1

How to correctly dispose an IrrlichtDevice Object

Posted: Thu Feb 16, 2006 10:15 pm
by pizzooid
I have created an application which only initializes an IrrlichtDevice and then calls:

Code: Select all

IrrlichtDevice __device = new IrrlichtDevice(DriverType.OPENGL);
__device.ResizeAble = true;

__device.WindowCaption = "Some String";

while (__device.Run()) // never exits here
{
    __device.CloseDevice(); 
}
but the device is never being disposed ... so how can i terminate the program corectly