Debug Assertion Failure  
Author Message

PostPosted: Visual C++ General, Debug Assertion Failure Top

File: c:\program files\microsoft visual studio .net 2003\vc7\atlmfc\include\cstringt.h

Line: 1808

Expression: strFormat.LoadStringA( nFormatID )

Any information as to what this could mean would be great. All I know is that my program compiles, and it works fine on every run except the first. This is probably because the first run requires creating and writing to a text file while the subsequent runs are simply appending the text file.

Visual C++13  

PostPosted: Visual C++ General, Debug Assertion Failure Top

Debug the application through Visual Studio. When it asserts, you should see the offending source code, and be able to step back on the call stack. When you hit a point in the "history" which is part of your source code, make sure that the surrounding source makes sense. Without knowing specifically what you're doing, or what breaks, it's hard to be more specific than that.

If you need further help, you should provide us with:

  • the source code at cstringt.h, line 1808 (I haven't got VC7 installed anymore)
  • your source code which leads up to the assert
  • any other details and quirks about your solution, which we should be aware of