Error: Debug Assertion Failed

I'm able to build my program w/o any errors, but when I go to build it, it gives me an error.This is the output from debug:


'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Users\Alet.Thomas\Documents\Visual Studio 2013\Projects\ThomasAlet_HW3\Debug\ThomasAlet_HW3.exe'. Symbols loaded.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sysfer.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\ProgramData\Symantec\Symantec Endpoint Protection\12.1.4013.4013.105\Data\Definitions\BASHDefs\20140612.012\UMEngx86.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp120d.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file.
Debug Assertion Failed!

Program: C:\Windows\SYSTEM32\MSVCP120D.dll
File: c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstring
Line: 1168

Expression: invalid null pointer

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
'ThomasAlet_HW3.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'. Cannot find or open the PDB file.
The thread 0x136c has exited with code 3 (0x3).
The program '[2996] ThomasAlet_HW3.exe' has exited with code 3 (0x3).
File: c:\program files (x86)\microsoft visual studio 12.0\vc\include\xstring
Line: 1168

Expression: invalid null pointer

The MSVC compiler, when doing a debug build, inserts/activates sanity checks within standard library code. One of those checks fails during runtime.

Your program either has a logical error or you don't check that the input is correct. Either way, you try to misuse an object/function (probably string-related).

Topic archived. No new replies allowed.