Page 1 of 1

Niko - Is this a bug?

Posted: Tue Jul 19, 2005 10:12 am
by MindGames
I noticed that the in the destructor of the .Net IrrlichtDevice, it does not drop the native Device that it wraps. Shouldn't it?

If you try this it crashes.

Code: Select all

device = new IrrlichtDevice(DriverType.DIRECTX9, new Dimension2D(640, 480), 16, true, false, false);

// Do stuff ...

device.CloseDevice();
device = null;

// Want to restart
device = new IrrlichtDevice(DriverType.DIRECTX9, new Dimension2D(640, 480), 16, true, false, false);
Is there some reason why you don't drop the device?

Posted: Sun Jul 24, 2005 9:44 am
by niko
You're right. Strange. I'll take a look at it. :)