How to correctly dispose an IrrlichtDevice Object

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
pizzooid
Posts: 1
Joined: Thu Feb 16, 2006 10:03 pm

How to correctly dispose an IrrlichtDevice Object

Post 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
Locked