Code: Select all
1: HWND DrawBox = GetDlgItem(hWin, RC_DRAW);
// create irrlicht device in the draw window
2: SIrrlichtCreationParameters param;
3: param.WindowId = reinterpret_cast<void*>(DrawBox);
4: param.DriverType = video::EDT_OPENGL;
5: GlobalDevice = createDeviceEx(param);
6: VideoDriver = GlobalDevice->getVideoDriver();
7: if(GlobalDevice->isWindowActive() && GlobalDevice->run())
8: {
9: VideoDriver->beginScene(true, true,0);
10: VideoDriver->endScene();
11: }The crash occurs at instruction 9 or 10 with the error:
The same code was fully working with 1.4Run-Time Check Failure #0
The value of ESP was not properly saved across a function call.
This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
Should I downgrade? Thank you a lot
Greetings
Listing