Hi all,
I’m getting a variety of intermittent errors on startup of my app in both Debug and Release build modes. The problem doesn’t happen all the time, and 2/5 times the app starts just fine. I’m using VS2012 and Cocos2d-x 3.2.
The errors (Debug mode):
Access violation 0xC0000005: Access violation reading location 0x000001C0
Occurs at this line in GLProgramState::applyGLProgram(const Mat4& modelView)
CCASSERT(_glprogram, “invalid glprogram”);
Access violation 0xC0000005: Access violation reading location 0xBAAD0115
Occurs at this line in GLProgram::use():
GL::useProgram(_program);
Error (Release mode):
Access violation 0xC0000005: Access violation reading location 0xBAADF00D.
Occurs at this line in int APIENTRY _tWinMain():
return Application::getInstance()->run();
I have no idea at all is causing these errors, and they’re very difficult to debug as they don’t reliably appear!
Any help very much appreciated