Original Post
My main game loop randomly gives me this error message: Unhandled exception at 0x00000000 in Program.exe: 0xC0000005: Access violation reading location 0x00000000. This seems to be the offending line:
void GameLoop(HWND hWnd)
{
__int64 currTime = 0;
QueryPerformanceCounter(reinterpret_cast<LARGE_INTEGER*>(&currTime));
float delta = (currTime - prevTime) * secsPerTick;
float timePassed = currTime - prevTime;
// GetInput();
Update(delta, hWnd);
Render(delta);
prevTime = currTime;
}
QueryPerformanceCounter(reinterpret_cast<LARGE_INTEGER*>(&currTime));