Access violation in Windows native build

Hello everyone.

I’m using Cocos creator to build a small game as side project.
I’m building for Android and Windows at this stage but I’m having issues with the windows build (Android works no problem)

When i kick the windows build I get no error and the build gets outputted properly, but when i try to run the exe file (both debug and release version) I get this kind of error:

Exception thrown at 0x00007FFCCCD33020 (msvcp140.dll) in TestGame.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

(In the debug build the dll causing issues is msvcp140d.dll)

I manage for now to make a build replacing the 2 files inside the engine with a couple that I found they were working, but honestly it was a lucky found and I don’t think it’s the proper fix. Unfortunately I’m no big expert in C++ (I built the game with TS) and I can’t figure out a proper solution for this.

Posting this because I was hoping to get a fix for this with the new release but it didn’t work out.

Would be anyone able to help me sort this out?

1 Like