Hi,
I try to add vehicle to my code and I can't do it. I took most from the demo VehicleApiDemo and I can compile it but it gives me an error.
I took most from it without createDisplayWheels, camera, steering. I wanted to just see the vehicle in the debugger first.
In debug build mode I get error "Unhandled exception at 0x0110a476 in HavokOGL_1.exe: 0xC0000005: Access violation reading location 0x0000002c. The program '[7740] HavokOGL_1.exe: Native' has exited with code -1073741819 (0xc0000005)."
And it points me to the file hkMemoryRouter.h to the line 74 " inline Allocator& heap() { return *m_heap; }"
This is the code I added to my code: http://pastebin.com/h5FSP2MB
This is my whole code: http://pastebin.com/6ttSAL67
void Pojazd() on the bottom in added code is my function, rest is mostly copied. Sorry for the big mess in code. I am not a good programmer, and I keep everything in one file.
I would be really greatfull if someone could help me identifying what I am doing wrong and how to fix it.



