Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
As soon as I add Rich edit control to my dialog and try debug it.. Build is successful but fails to debug. The output shows as
CSS
'Rich1.exe': Loaded 'C:\Documents and Settings\abc\My Documents\Visual Studio 2010\Projects\Rich1\Debug\Rich1.exe', Symbols loaded.
'Rich1.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\mfc100ud.dll', Symbols loaded.
'Rich1.exe': Loaded 'C:\WINDOWS\system32\msvcr100d.dll', Symbols loaded.
'Rich1.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\msimg32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\mfc100enu.dll', Binary was not built with debug information.
'Rich1.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\Program Files\McAfee\SiteAdvisor\sahook.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\version.dll', Cannot find or open the PDB file
'Rich1.exe': Unloaded 'C:\WINDOWS\system32\version.dll'
'Rich1.exe': Loaded 'C:\WINDOWS\system32\MSCTFIME.IME', Cannot find or open the PDB file
Detected memory leaks!
Dumping objects ->
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occmgr.cpp(195) : {384} normal block at 0x0034CF90, 40 bytes long.
 Data: <                > 01 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occmgr.cpp(181) : {383} normal block at 0x0034CF38, 24 bytes long.
 Data: <                > FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00
Object dump complete.
The program '[3020] Rich1.exe: Native' has exited with code 0 (0x0).

what should i do now??? thank you
Posted
Comments
Richard MacCutchan 7-Sep-12 4:32am    
Rebuild your program and ensure that DEBUG is defined for the entire project. Start from the debugger and step through until you find the error.
Sharath2790 7-Sep-12 4:41am    
Hmmm!! I've tried it but Same thing....

1 solution

Please call AfxInitRichEdit(); or AfxInitRichEdit2();inside from InitInstance of your application, CRich1App::InitInstance().

Call this function to initialize the rich edit control (version 1.0) for the application. This function is provided for backward compatibility. Applications created with Visual C++ .NET and later use AfxInitRichEdit2.

AfxInitRichEdit loads RICHED32.DLL to initialize version 1.0 of the rich edit control.

http://msdn.microsoft.com/en-us/library/tt1cfb9f%28v=vs.80%29.aspx[^]
 
Share this answer
 
v2
Comments
Sharath2790 7-Sep-12 5:52am    
Thank you!! It works!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900