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);