Hi Lan,
Thanks for the information!
Oh, is it possible your machine has setup the symbol server for the
VS.net2003 debugger? If this is true, the VS.net2003 debugger is trying to
load the symbol for the loaded modules now, so that the UI response is
slow. VS.net2003 debugger uses early symbol loading that is if you set the
Microsoft symbol server for the VS.net2003, the VS.net2003 will load all
the symbols for all the modules in the application after you pressed F5.
Loading symbols for all the modules is a lengthy operation which requires
some time. Since Windbg uses delay symbol loading, it will not experience
this delay.
Also, since DirectoryEntry class resides in System.DirectoryServices.dll
assembly, so its symbol will reside in a separate file, which may require
some addition time to download from Microsoft symbol server. If you do not
use DirectoryEntry class in the application, your application will not
load
System.DirectoryServices.dll assembly, so the VS.net2003 debugger will not
download the symbol file for System.DirectoryServices.dll. This may
explain
why removing the DirectoryEntry class code will eliminate the delay.
To check if you are experiencing the VS.net2003 debugger symbol loading
delay, I recommend you click View->Other Windows->Output menu item to open
the Output window in the VS.net2003 IDE after you pressed F5. Then you can
check if there are additional symbol loading statements like below:
'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', Symbols
loaded.
'ImmediateWindowTest': Loaded
'G:\Program\winform\2006\9-20\ImmediateWindowTest\bin\Debug\ImmediateWindowT
est.exe', Symbols loaded.
'ImmediateWindowTest.exe': Loaded
'c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\s
ystem.windows.forms.dll', Symbols loaded.
'ImmediateWindowTest.exe': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll',
Symbols loaded.
'ImmediateWindowTest.exe': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.
drawing.dll', Symbols loaded.
'ImmediateWindowTest.exe': Loaded
'c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.dat
a.dll', Symbols loaded.
'ImmediateWindowTest.exe': Loaded
'c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.
dll', Symbols loaded.
The "Symbols loaded" in the output means that you have set the symbol
server for the .Net FCL assemblies.
You may also check "_NT_SYMBOL_PATH" environment variable in your system.
This is the environment variable VS.net2003 debugger uses to set symbol
servers.
I will wait for your further confirmation regarding this guess. Thanks.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.