Stephen Cawood
2006-11-29 17:43:02 UTC
thanks in advance.
I have a VS2005 solution with an unmanaged C++ DLL being called by a C# app.
the C++ DLL is a wrapper for a C++ .lib. when I start debugging, everything
works fine in the C# code, but the breakpoints in the CPP files show "No
symbols have been loaded for this document." When I look at the modules, the
status for the CPP DLL is "Symbols loaded." but there is an exclamation mark
and the error "The module did not load at the default load address."
I am running in debug mode for both projects. I've tried rebooting. I've
tried deleting all the debug files and rebuilding. I've tried the steps in
this help doc:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vsdebug/html/2859067d-7fcc-46b0-a4df-8c2101500977.htm.
this includes adding /ASSEMBLYDEBUG to the native DLL project - I also
tried w/out this statement.
To get the C# project to find the DLL at the location of the symbols file, I
am referencing the DLL by the path in the import (i.e.
[DllImport("..\\..\\..\\..\\cpp.dll). I know this isn't the best way, but I
just want to debug an issue and then change it back to just the DLL name.
I also tried changing the debug build dir for the C++ project to be the
debug dir of the C# project, but that didn't help.
ideas?
I have a VS2005 solution with an unmanaged C++ DLL being called by a C# app.
the C++ DLL is a wrapper for a C++ .lib. when I start debugging, everything
works fine in the C# code, but the breakpoints in the CPP files show "No
symbols have been loaded for this document." When I look at the modules, the
status for the CPP DLL is "Symbols loaded." but there is an exclamation mark
and the error "The module did not load at the default load address."
I am running in debug mode for both projects. I've tried rebooting. I've
tried deleting all the debug files and rebuilding. I've tried the steps in
this help doc:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vsdebug/html/2859067d-7fcc-46b0-a4df-8c2101500977.htm.
this includes adding /ASSEMBLYDEBUG to the native DLL project - I also
tried w/out this statement.
To get the C# project to find the DLL at the location of the symbols file, I
am referencing the DLL by the path in the import (i.e.
[DllImport("..\\..\\..\\..\\cpp.dll). I know this isn't the best way, but I
just want to debug an issue and then change it back to just the DLL name.
I also tried changing the debug build dir for the C++ project to be the
debug dir of the C# project, but that didn't help.
ideas?