Re: Extremely slow debugging performance in VS2003 with interop



I do not have _NT_SYMBOL_PATH defined as a system variable.

Regarding renaming symsrv.dll, it does produce interesting behavior. I
rename the file to symsrv.dll.hide, start VS and the initial run of the app
in the debugger now executes CreateInstance in 12 secs instead of 45.
However, the second time I run the app (without shutting down VS), I'm back
to 45 seconds every first time I run the app in the debugger. If I shut down
VS, start it up again, and run the app in the debugger, it's back to 12 secs
the first time I run the app in the debugger, then it's back to 45 seconds
every subsequent first time I run the app in the debugger.

Even if I could get it to run 12 secs every time, it's still unbearably
slow. Any other ideas?

Here is the 12 second output:

'ReproSlowDebugCPP.exe': Loaded
'C:\ReproSlowDebug\ReproSlowDebugCPP\ReproSlowDebugCPP\Debug\ReproSlowDebugCPP.exe', Symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\mfc71d.dll', Symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\msvcr71d.dll', Symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\MFC71ENU.DLL', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\Program Files\VSCLIENT\viexhk32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\SynTPFcs.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\version.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\SafeGuard\SafeGuard Easy\SgMsgBhk.dll',
No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\MSCTFIME.IME', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\clbcatq.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\comres.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msvcr71.dll', Symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\mscorlib\1.0.5000.0__b77a5c561934e089_947c609d\mscorlib.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\sxs.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\xpsp2res.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorsn.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\ReproSlowDebug\ReproSlowDebugCPP\ReproSlowDebugCPP\Debug\ReproSlowDebug.dll', No native symbols in symbol file.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorjit.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\diasymreader.dll', No symbols
loaded.
The thread 'Win32 Thread' (0x2ec) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xf7c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xfc4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xb04) has exited with code 0 (0x0).
The program '[3192] ReproSlowDebugCPP.exe: Native' has exited with code 0
(0x0).


Here is the 45 second output:

'ReproSlowDebugCPP.exe': Loaded
'C:\ReproSlowDebug\ReproSlowDebugCPP\ReproSlowDebugCPP\Debug\ReproSlowDebugCPP.exe', Symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\mfc71d.dll', Symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\msvcr71d.dll', Symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\MFC71ENU.DLL', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\Program Files\VSCLIENT\viexhk32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\SynTPFcs.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\version.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\SafeGuard\SafeGuard Easy\SgMsgBhk.dll',
No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\MSCTFIME.IME', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\clbcatq.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\comres.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msvcr71.dll', Symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\mscorlib\1.0.5000.0__b77a5c561934e089_947c609d\mscorlib.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\sxs.dll', No symbols
loaded.
'ReproSlowDebugCPP.exe': Loaded 'C:\WINDOWS\system32\xpsp2res.dll', No
symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorsn.dll', No symbols loaded.
'ReproSlowDebugCPP.exe': Loaded
'C:\ReproSlowDebug\ReproSlowDebugCPP\ReproSlowDebugCPP\Debug\ReproSlowDebug.dll', No native symbols in symbol file.
'ReproSlowDebugCPP.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorjit.dll', No symbols
loaded.


"Oleg Starodumov" wrote:

>
> > I do not have any entries in my "Debug Sumbol files" section for the solution
> > and am not using a symbol server.
>
> Is anything specified in _NT_SYMBOL_PATH environment variable?
>
> > Were you able to reproduce the issue on
> > your machine(s) with the code I provided?
> >
>
> Yes, I see a delay when calling CreateInstance for the first time, and it is definitely
> related with loading symbols for a large number of .NET modules (which get loaded
> by the process during that time; the second call to CreateInstance is quick because
> it does not load any new modules).
>
> Also it seems that in my case symbol server plays a major role in the delay.
> If I rename symsrv.dll (located in <VSInstallDir>\Common7\IDE directory, VS restart is required),
> the delay almost disappears. You can try to do the same thing, will it have effect
> in your case?
>
> Oleg
>
>
>
>
>
.



Relevant Pages

  • Re: Extremely slow debugging performance in VS2003 with interop
    ... > rename the file to symsrv.dll.hide, start VS and the initial run of the app ... > in the debugger now executes CreateInstance in 12 secs instead of 45. ... > to 45 seconds every first time I run the app in the debugger. ... > Here is the 12 second output: ...
    (microsoft.public.vsnet.debugging)
  • Re: SqlceException.SqlceException
    ... First of all, i found the cause of the exception and corrected it, it was ... > same challenge in terms of deploying the initial SQL CE database. ... > db along with your app. ... it is the first time i am doing mobile applications and the first ...
    (microsoft.public.sqlserver.ce)
  • Re: Accessing Session Variable
    ... when I run the script for the first time. ... If it still gives a problem, your PHP install ... If you are not using a debugger, ... That's free software. ...
    (php.general)
  • Re: How Big is Too Big?
    ... How big is too big when it comes to a VB App? ... This was not just the first time it was run but every single ... processing will render redundant all the clever algorithms that have ... computer algorithm as quickly as any reasonably intelligent person can ...
    (microsoft.public.vb.general.discussion)
  • Re: Slow start up times...
    ... I'm afraid I really don't know, especially since it runs fine the first time ... Try testing the Normal template, for Word at least--see the link on this ... After the app loads, it then hangs for a good 10 secs. ...
    (microsoft.public.mac.office)

Loading