Home » Category » Microsoft Visual C & C++

Microsoft Visual C & C++: Help! What's wrong with my program? the .exe has been generated, but couldn't stop at the brea

100| Sun, 06 Jan 2008 14:03:00 GMT| peter_yan| Comments (6)
Hi all,

Recently, I got a problem from my friend, but I don't know his development environment. I guess the problem may developed in .net 2003, boost version is 1.33_1. My development evironment as following: .net 2005, the version of boost is 1.3.4 and my OS is windows XP. After i update conresspondent configuration, the program could be compile and the .exe file has been generated. The problem is the .exe couldn't work well, nothing could be generated after runing it. Then I insert a breakpoint in the main function, and set the solution to debug in confugration dialog, but the process do not stop at the breakpoint while debuging the program. Some error information appeared as following:
'd.exe': Loaded 'D:\work\bin\d.exe', Symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.

'd.exe': Loaded 'D:\UDM\bin\UdmDll_3_1_1D.dll', No symbols loaded.
'd.exe': Loaded 'D:\UDM\3rdparty\xerces-c_2_5_0\bin\xerces-c_2_5_0D.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', Symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll', Symbols loaded.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\libeng.dll', No symbols loaded.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\libmx.dll', No symbols loaded.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\icuuc32.dll', Binary was not built with debug information.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\icudt32.dll', Binary was not built with debug information.
'd.exe': Loaded 'C:\WINDOWS\system32\msvcr71.dll', No symbols loaded.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\libz.dll', Binary was not built with debug information.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\libut.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll', No symbols loaded.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\icuin32.dll', Binary was not built with debug information.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\icuio32.dll', Binary was not built with debug information.
'd.exe': Loaded 'C:\WINDOWS\system32\msvcp71.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols loaded.
The program '[3992] d.exe: Native' has exited with code 255 (0xff).


After that, I run depends.exe to profile the .exe
and depends also give some errors as following:

00:00:00.000: Started "d:\work\bin\MDL2MGA_D.EXE" (process 0x1634) at address 0x00400000 by thread 1. Successfully hooked module.
00:00:00.000: Loaded "c:\windows\system32\NTDLL.DLL" at address 0x7C920000 by thread 1. Successfully hooked module.
00:00:00.344: Loaded "c:\windows\system32\KERNEL32.DLL" at address 0x7C800000 by thread 1. Successfully hooked module.
00:00:00.360: DllMain(0x7C920000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\system32\NTDLL.DLL" called by thread 1.
...........................................
00:00:00.578: DllMain(0x08370000, DLL_PROCESS_ATTACH, 0x00000000) in "e:\develop\dependency worker\DEPENDS.DLL" returned 1 (0x1) by thread 1.
00:00:00.610: Loaded "d:\udm\bin\UDMDLL_3_1_1D.DLL" at address 0x10000000 by thread 1. Successfully hooked module.
00:00:00.625: Loaded "d:\udm\3rdparty\xerces-c_2_5_0\bin\XERCES-C_2_5_0D.DLL" at address 0x12000000 by thread 1. Successfully hooked module.
....................................
00:00:01.063: Loaded "c:\windows\system32\MSVCP71.DLL" at address 0x7C3A0000 by thread 1. Successfully hooked module.
00:00:01.063: Entrypoint reached. All implicit modules have been loaded.
00:00:01.078: DllMain(0x77E50000, DLL_PROCESS_ATTACH, 0x0012FD30) in "c:\windows\system32\RPCRT4.DLL" called by thread 1.
00:00:01.078: DllMain(0x77E50000, DLL_PROCESS_ATTACH, 0x0012FD30) in "c:\windows\system32\RPCRT4.DLL" returned 1 (0x1) by thread 1.
00:00:01.078: DllMain(0x77DA0000, DLL_PROCESS_ATTACH, 0x0012FD30) in "c:\windows\system32\ADVAPI32.DLL" called by thread 1.
00:00:01.078: DllMain(0x77DA0000, DLL_PROCESS_ATTACH, 0x0012FD30) in "c:\windows\system32\ADVAPI32.DLL" returned 1 (0x1) by thread 1.
00:00:01.078: DllMain(0x77BE0000, DLL_PROCESS_ATTACH, 0x0012FD30) in "c:\windows\system32\MSVCRT.DLL" called by thread 1.
00:00:01.078: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "InitializeCriticalSectionAndSpinCount") called from "c:\windows\system32\MSVCRT.DLL" at address 0x77C079C2 and returned 0x7C80B829 by thread 1.
00:00:01.125: DllMain(0x77BE0000, DLL_PROCESS_ATTACH, 0x0012FD30) in "c:\windows\system32\MSVCRT.DLL" returned 1 (0x1) by thread 1.
00:00:01.125: DllMain(0x00550000, DLL_PROCESS_ATTACH, 0x0012FD30) in "c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\MSVCR80D.DLL" called by thread 1.
00:00:01.125: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "FlsAlloc") called from "c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\MSVCR80D.DLL" at address 0x00554A65 and returned NULL by thread 1. Error:  (127).
00:00:01.203: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "FlsGetValue") called from "c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\MSVCR80D.DLL" at address 0x00554A79 and returned NULL by thread 1. Error:  (127).
00:00:01.203: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "FlsSetValue") called from "c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\MSVCR80D.DLL" at address 0x00554A8D and returned NULL by thread 1. Error:  (127).
00:00:01.219: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "FlsFree") called from "c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\MSVCR80D.DLL" at address 0x00554AA1 and returned NULL by thread 1. Error:  (127).

00:00:01.235: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "EncodePointer") called from "c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\MSVCR80D.DLL" at address 0x005548C8 and returned 0x7C933917 by thread 1.
00:00:01.328: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "EncodePointer") called from "c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\MSVCR80D.DLL" at address 0x005548C8 and returned 0x7C933917 by thread 1.
.....................................................
00:00:01.422: GetProcAddress(0x77BE0000 [c:\windows\system32\MSVCRT.DLL], "_set_error_mode") called from "c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\MSVCR80D.DLL" at address 0x005577FC and returned 0x77C05348 by thread 1.
00:00:01.469: GetProcAddress(0x77BE0000 [c:\windows\system32\MSVCRT.DLL], "?set_terminate......YAP6AXXZP6AXXZ...Z") called from "c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\MSVCR80D.DLL" at address 0x00557830 and returned 0x77BF2567 by thread 1.
00:00:01.469: GetProcAddress(0x77BE0000 [c:\windows\system32\MSVCRT.DLL], "_get_terminate") called from "c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\MSVCR80D.DLL" at address 0x00557863 and returned NULL by thread 1. Error:  (127).
00:00:01.469: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "FindActCtxSectionStringW") called from "c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\MSVCR80D.DLL" at address 0x00553328 and returned 0x7C82FD4C by thread 1.
00:00:01.485: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "GetSystemWindowsDirectoryW") called from "c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\MSVCR80D.DLL" at address 0x00553592 and returned 0x7C80AD29 by thread 1.
00:00:01.485: DllMain(0x00550000, DLL_PROCESS_ATTACH, 0x0012FD30) in "c:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\MSVCR80D.DLL" returned 1 (0x1) by thread 1.
.............................................
00:00:01.969: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "InitializeCriticalSectionAndSpinCount") called from "c:\windows\system32\MSVCR71.DLL" at address 0x7C3418AB and returned 0x7C80B829 by thread 1.
00:00:02.000: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "FlsAlloc") called from "c:\windows\system32\MSVCR71.DLL" at address 0x7C341950 and returned NULL by thread 1. Error:  (127).
00:00:02.016: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "FlsGetValue") called from "c:\windows\system32\MSVCR71.DLL" at address 0x7C34195D and returned NULL by thread 1. Error:  (127).
00:00:02.016: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "FlsSetValue") called from "c:\windows\system32\MSVCR71.DLL" at address 0x7C34196A and returned NULL by thread 1. Error:  (127).
00:00:02.016: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "FlsFree") called from "c:\windows\system32\MSVCR71.DLL" at address 0x7C341977 and returned NULL by thread 1. Error:  (127).
00:00:02.016: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "IsProcessorFeaturePresent") called from "c:\windows\system32\MSVCR71.DLL" at address 0x7C341FDA and returned 0x7C80AE2A by thread 1.

...........................................
I don't know what's happen for my program. why the debug process could entry the main function but the .exe has been generated ?
Any suggestion or advice are appreciated.
Thank you very much!

Keywords & Tags: wrong, program, .exe, been, generated, couldn, stop, brea, microsoft, visual c++, vc

URL: http://www.7prog.com/visual-c-c++/130936/
 
«« Prev - Next »» 6 helpful answers below.
The symbol messages aren't likely to be relevant. The problem is probably tied to the project layout or configuration. See http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1849939&SiteID=1.

einaros | Fri, 28 Sep 2007 12:48:00 GMT |

"The problem is probably tied to the project layout or configuration" ?
Could you tell me how to fix the problem? One friend tell the problem maybe tied to the dll, but I don't know how to correct it.

peter_yan | Fri, 28 Sep 2007 12:50:00 GMT |

Oh, after I clear all the redundant files, rebuild the program. the press ctr+F5, an error has been generated,
"runtime error R6030
- CRT not initialized
."
and If I directly double click the .exe file, nothing produce by the .exe file just like before.

peter_yan | Fri, 28 Sep 2007 12:51:00 GMT |

If the project isn't too large, or in other words the number of source files is reasonably low, you could probably fix it by creating a brand new project, then adding the various headers and source files to that. Snooping through the configuration can take time, and there can be more than one problem there, especially if this is a project that has been upgraded through prevoius versions of VS.

einaros | Fri, 28 Sep 2007 12:51:00 GMT |

Hi einaros ,
Thank you very much! yes, I get it by creating a brand new project. Thank you again. ^_^

peter_yan | Fri, 28 Sep 2007 12:53:00 GMT |

peter.Yan wrote:
Some error information appeared as following:
'd.exe': Loaded 'D:\work\bin\d.exe', Symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.

'd.exe': Loaded 'D:\UDM\bin\UdmDll_3_1_1D.dll', No symbols loaded.
'd.exe': Loaded 'D:\UDM\3rdparty\xerces-c_2_5_0\bin\xerces-c_2_5_0D.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', Symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll', Symbols loaded.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\libeng.dll', No symbols loaded.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\libmx.dll', No symbols loaded.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\icuuc32.dll', Binary was not built with debug information.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\icudt32.dll', Binary was not built with debug information.
'd.exe': Loaded 'C:\WINDOWS\system32\msvcr71.dll', No symbols loaded.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\libz.dll', Binary was not built with debug information.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\libut.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll', No symbols loaded.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\icuin32.dll', Binary was not built with debug information.
'd.exe': Loaded 'D:\MATLAB71\bin\win32\icuio32.dll', Binary was not built with debug information.
'd.exe': Loaded 'C:\WINDOWS\system32\msvcp71.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols loaded.
'd.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols loaded.
The program '[3992] d.exe: Native' has exited with code 255 (0xff).

None of those are errors!

You are not the first to say they are errors, but there is nothing saying they are.

simplesamples | Fri, 28 Sep 2007 12:54:00 GMT |

Microsoft Visual C & C++ Hot Answers

Microsoft Visual C & C++ New questions

Microsoft Visual C & C++ Related Categories