473,499 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Slow Debug of C++ code

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
1 2547
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
17524
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time...
8
1939
by: Robert Gravereaux | last post by:
I've noticed that the first exception thrown/caught by an app running in debug is very slow - it takes perhaps 7 or 8 seconds on my P4 machine. I've noticed this on several different machines...
16
1719
by: Dean R. Henderson | last post by:
I have a project built for ASP.NET that recently started running really slow in debug mode (it takes about 10 seconds or more to step from one line of code to the next). This just started...
3
1257
by: Bob Graham | last post by:
This code: txRate.Text = Format(payRate, "C") (payRate is already succesfully set to a value such as 15D) takes about 3-4 seconds to run the first time, after that it's plenty fast. What...
13
2118
by: dbuchanan | last post by:
This code resets a form with two cbo's (comboBoxes) and one datagrid. The first cbo (cboSelection) selects a main table and filters the second cbo. The second cbo (cboView) selects the secondary...
50
5649
by: diffuser78 | last post by:
I have just started to learn python. Some said that its slow. Can somebody pin point the issue. Thans
3
1947
by: michael | last post by:
Hi, I am trying to write an ASP.NET web app, in Visual Basic.NET, using Visual Studio.NET 2004, .NET framework 1.1.4322 SP1 Running the project/app on localhost while in dev/write/debug stage ...
4
3183
by: yuanliu1 | last post by:
Hi, I am debugging my code of visual c++ 6.0. I found it is extremely slow to run after the code is compiled as "debug" mode and OK as "release mode", I would say the difference is around 10x....
7
2086
by: colin | last post by:
Hi, Ive written a 3dmodel editor, and it works fairly well it harldy uses any cpu exept when its loading a texture from bitmap in the debugger, at all other times it hardly uses any cpu but from...
0
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
302
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.