By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,213 Members | 1,966 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,213 IT Pros & Developers. It's quick & easy.

Slow Debug of C++ code

P: n/a
Hi,

I am writing a C# application that uses a C++ unmanaged DLL. When I turn the
unmanaged debug option ON, the application is much slower to start and the
unmanaged code is very slow to debug.

Is it normal?

Eric Robert
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
> Hi,

I am writing a C# application that uses a C++ unmanaged DLL. When I turn the unmanaged debug option ON, the application is much slower to start and the
unmanaged code is very slow to debug.

Is it normal?

Eric Robert


Here is more information and a sample program. Writing it, I even found some
kind of weird behavior. The call to OutputDebugString in the DLL doesn't
show if "Enable Unmanaged Debugging" is not set to True.

---

with "Enable Unmanaged Debugging" to False (default)

'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols
loaded.
'MyWindow': Loaded 'D:\Shared\MyApplication\Output\MyWindow.exe', Symbols
loaded.
'MyWindow.exe': Loaded
'c:\windows\assembly\gac\system.windows.forms\1.0. 5000.0__b77a5c561934e089\s
ystem.windows.forms.dll', No symbols loaded.
'MyWindow.exe': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll', No
symbols loaded.
'MyWindow.exe': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.
drawing.dll', No symbols loaded.
The program '[4064] MyWindow.exe' has exited with code 0 (0x0).

---

with "Enable Unmanaged Debugging" to True

'MyWindow.exe': Loaded 'D:\Shared\MyApplication\Output\MyWindow.exe', No
native symbols in symbol file.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', No symbols loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols
loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols
loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\SHLWAPI.DLL', No symbols loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msco rwks.dll', No symbols
loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msvc r71.dll', Symbols loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusi on.dll', No symbols
loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No symbols loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.
0.2600.1331_x-ww_7abf6d02\comctl32.dll', No symbols loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', No symbols
loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msco rlib.dll', No symbols
loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\mscor lib\1.0.5000.0__b77a5c5619
34e089_173bdc13\mscorlib.dll', No symbols loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\dias ymreader.dll', No symbols
loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols
loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msco rsn.dll', No symbols
loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No symbols loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', No symbols loaded.
'MyWindow': Loaded 'D:\Shared\MyApplication\Output\MyWindow.exe', Symbols
loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\assembly\GAC\System.Windows.Forms\1.0. 5000.0__b77a5c561934e089\S
ystem.Windows.Forms.dll', No symbols loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\Syste m.Windows.Forms\1.0.5000.0
__b77a5c561934e089_b0194707\System.Windows.Forms.d ll', No symbols loaded.
'MyWindow.exe': Loaded
'c:\windows\assembly\gac\system.windows.forms\1.0. 5000.0__b77a5c561934e089\s
ystem.windows.forms.dll', No symbols loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\assembly\GAC\System\1.0.5000.0__b77a5c 561934e089\System.dll', No
symbols loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\Syste m\1.0.5000.0__b77a5c561934
e089_d9a83c92\System.dll', No symbols loaded.
'MyWindow.exe': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll', No
symbols loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msco rjit.dll', No symbols
loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\assembly\GAC\System.Drawing\1.0.5000.0 __b03f5f7f11d50a3a\System.
Drawing.dll', No symbols loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\Syste m.Drawing\1.0.5000.0__b03f
5f7f11d50a3a_14ee6e58\System.Drawing.dll', No symbols loaded.
'MyWindow.exe': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.
drawing.dll', No symbols loaded.
'MyWindow.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6 595b64144ccf1df_1.0.10.0_x
-ww_712befd8\GdiPlus.dll', No symbols loaded.
'MyWindow.exe': Loaded 'C:\WINDOWS\system32\CTAGENT.DLL', No symbols loaded.
'MyWindow.exe': Loaded 'D:\Shared\MyApplication\Output\MyDLL.dll', Symbols
loaded.
Hello from the DLL
The thread 'Win32 Thread' (0xf20) has exited with code 0 (0x0).
The program '[3560] MyWindow.exe' has exited with code 0 (0x0).
The program '[3560] MyWindow.exe: Native' has exited with code 0 (0x0).

---

Thanks again!

Eric Robert
UbiSoft - Software Engineer


Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.