Access violation when trying to run stepMultithreaded function.

Access violation when trying to run stepMultithreaded function.

Hi!My program crashes when hkpWorld calls stepMultithreaded (or stepDeltaTime for that matter).Unhandled exception at 0x0152298a in Client_Debug.exe: 0xC0000005: Access violation reading location 0x00000004.Heres the callstack:Client_Debug.exe!hkPadSpu::val() + 0xa bytes Client_Debug.exe!hkMonitorStream::getEnd() + 0xe bytes Client_Debug.exe!hkMonitorStream::memoryAvailable() + 0xd bytes Client_Debug.exe!hkpMultiThreadedSimulation::stepBeginSt() + 0x49 bytes Client_Debug.exe!hkpWorld::initMtStep() + 0x121 bytes Client_Debug.exe!hkpWorld::stepMultithreaded() + 0x1c bytes> Client_Debug.exe!FPS::HavokWorld::Update(float aTime=0.0034260640) Line 129 C++ Client_Debug.exe!FPS::GameLogic::Update(const float & aElapsedTime=0.0034260640) Line 65 C++ Client_Debug.exe!FPS::GameStateRunning::UpdatePlayingState(float aTime=0.0034260640) Line 130C++ Client_Debug.exe!FPS::GameStateRunning::Update(float aTime=0.0034260640) Line 96 C++ Client_Debug.exe!FPS::Game::Update(float aTime=0.0034260640) Line 65 + 0x42 bytes C++ Client_Debug.exe!FPS::LogicHandler::Update() Line 56 + 0x15 bytes C++ Client_Debug.exe!LogicThreadFunction(void * lpParam=0x002df49c) Line 24 + 0xa bytes C++EDIT:Fixed it! It was only that I initialized Havok on one thread and updated it on another of course.

1 post / novo 0
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.