How to correctly dispose an IrrlichtDevice Object
Posted: Thu Feb 16, 2006 10:15 pm
I have created an application which only initializes an IrrlichtDevice and then calls:
but the device is never being disposed ... so how can i terminate the program corectly
Code: Select all
IrrlichtDevice __device = new IrrlichtDevice(DriverType.OPENGL);
__device.ResizeAble = true;
__device.WindowCaption = "Some String";
while (__device.Run()) // never exits here
{
__device.CloseDevice();
}