Ed
2010-01-21 22:29:31 UTC
We have a VS 2005 C++ out-of-process automation server. It uses a a .Net
class using interop. It creates the .Net class (created in VS 2005)
early when the automation class is created by the client. It works
perfectly. The only problem is that we can debug it. After the
automation server exe starts, we attach to the process but not all the
symbols are loaded so we cannot set any breakpoint. When the process is
attached, we see these line and nothing else.
'server.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll',
No symbols loaded.
'server.exe' (Managed): Loaded 'OUR .Net DLL PATH', Symbols loaded.
'server.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll',
No symbols loaded.
'server.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll',
No symbols loaded.
'server.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll',
No symbols loaded.
What can be done?
If we delay the creation of the .Net class so we can attach to the
automation process before the .Net class is created, then everything is
fine. We did this as a test and cannot leave this in the code.
Thanks
class using interop. It creates the .Net class (created in VS 2005)
early when the automation class is created by the client. It works
perfectly. The only problem is that we can debug it. After the
automation server exe starts, we attach to the process but not all the
symbols are loaded so we cannot set any breakpoint. When the process is
attached, we see these line and nothing else.
'server.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll',
No symbols loaded.
'server.exe' (Managed): Loaded 'OUR .Net DLL PATH', Symbols loaded.
'server.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll',
No symbols loaded.
'server.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll',
No symbols loaded.
'server.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll',
No symbols loaded.
What can be done?
If we delay the creation of the .Net class so we can attach to the
automation process before the .Net class is created, then everything is
fine. We did this as a test and cannot leave this in the code.
Thanks