Niko - Is this a bug?
Posted: Tue Jul 19, 2005 10:12 am
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.
Is there some reason why you don't drop the device?
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);