Debug assertion failed

后端 未结 3 1125
孤城傲影
孤城傲影 2021-01-20 20:05

I keep encountering this \"Debug assertions failed!\" error when I run my program in debug mode. I tried looking this error up on the visual C++ website but the

3条回答
  •  我在风中等你
    2021-01-20 20:32

    Assertions are statements which only evaluate when you are running in debug mode (Cheap debug checking).

    For instance, this would fail assertion in debug, but would not cause an error in release:

    ASSERT(1 == 2);
    

    It's likely that some method you are calling expects a certain input and isn't getting it, but it doesn't cause an immediate error (So your code works in non-debug mode.)

    Hopefully that's helpful.

    If you can post your specific code, someone can probably help you with a more specific response.

提交回复
热议问题