Code: Select all
void Graphics::recreateWindow(SIrrlichtCreationParameters param)
{
device = createDeviceEx(param);
smgr = device->getSceneManager();
driver = device->getVideoDriver();
gi = device->getGUIEnvironment();
};
All correct values. When I press F5, VS appears to freeze, as the window in the foreground takes control and you cant access VS. Right clicking the program of my creation and clicking "Close" via windows then allows me back to VS and shows me:WindowSize {Width=1280 Height = 1024}
Bits = 32 ' '
ZBufferBits = 16 ''
Etc. Etc.
It also shows me in the background that param now equals:Unhandled Exception 0x00480c85 in Win32Learn.exe: 0xC0000005: Access violation reading location 0x00000000.
I am unsure how, between line 2 and 3 of my code these could change and cause a crash. Of course, I have researched this topic and other have had problems with releasing of resources aka, not unloading textures before restart so I will post my shutting down function to.DriverType = 2147328000
And other seemlingly trash values.
Code: Select all
void Graphics::endDevice()
{
gi->clear();
smgr->clear();
driver->removeAllHardwareBuffers();
driver->removeAllTextures();
device->closeDevice();
device->run();
device->drop();
};