error flash

Im using vc express im getting some kind of warning something may be unsafe but it disappears when my program starts so I cant read it. how do you see it if it only appears for a second?
does the warning comes in compilation or when you execute the program?
unsafe functions warnings in VS comes during compilation. This is due to introduction of safe functions in newer VS versions.
i compile it -> then get the message -> the message then disappears-> then my program starts fine

where can i look to read what it said. i need to know what its flashing so I can fix it.
Last edited on
when you compile, the message will be there until you start your program. How it is disappearing on its own? are you straightaway executing it.
i have no choice. start debuging starts the program. step into starts the program. there is no way to start the debug without the program starting. it flashes a warning then is immediately replaced with

'main6.exe': Loaded 'C:\Users\john\Documents\Visual Studio 2010\Projects\main6\Debug\main6.exe', Symbols loaded.
'main6.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'main6.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'main6.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'main6.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
'main6.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.


and no i cant scroll up
Last edited on
i caught a glimpse of it that time its a warning about strcpy

*edit im not going to dwell over this its taking to long to figure out right now. theres better code i could be compiling.
Last edited on
Compile it without running it...I mean, it's actually harder to copile&run than it is to just straight up compile...
ok i got it now. your right it stays when its not running. thanks at least i know now.

>------ Build started: Project: main6, Configuration: Debug Win32 ------
1> main.cpp
1>c:\users\john\documents\visual studio 2010\projects\main6\main6\main.cpp(12): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\users\john\documents\visual studio 2010\projects\main6\main6\main.cpp(56): warning C4154: deletion of an array expression; conversion to pointer supplied
1> main6.vcxproj -> c:\Users\john\Documents\Visual Studio 2010\Projects\main6\Debug\main6.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Last edited on
acorn wrote:
'main6.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'main6.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'main6.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file


PDB files are files with debugging symbols built into them. Debugging symbols are usually left out in release versions, so VS shouldn't be able to find the symbols in the versions of kernel32.dll [and the other dlls] on your system, because they aren't there. This is fine, because, when debugging, these files will not be the source of errors anyways.


thanks modshop. I didnt know what they were.

thanks. my program was a flyweight pattern experiment. I have 5 unique tiles that are used dozens of times. so i thought flyweight would help. the more i look at the code the more i dont think it works good for what im doin anyway.
the unsafe warnings are the same which i stated above.

put this "_CRT_SECURE_NO_WARNINGS" in the preprocessor settings and they will go away.
Topic archived. No new replies allowed.