Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17111

DebugDrawMask crashes win32 debug build

$
0
0

@phyerh wrote:

Hello, I am using visual studio to develop my game.
And I was using working with my game about 2weeks and there was no problem with this code
scene->getPhysicsWorld()->setDebugDrawMask(PhysicsWorld::DEBUGDRAW_ALL);

However, I was not working with physicsbodies the last two days so I disabled setDebugDrawMask;
then when I try to use it again today, it crashes my game with the following error
Debug Assertion Failed!
Program: C:\WINDOWS\SYSTEM32\MSVCP140D.dll
File: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vector
Line: 241
Expression: vector iterators incompatible

But it is so weird that it only crashes the win32 debug build.
it was totally fine with win32 release build, android debug/release build, ios debug/release build.

I am so sorry that I wanted to post my codes but there are too many codes and I don't even know which part might cause the problem.
please, anyone knows any possible error source?
thank you

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17111

Trending Articles