Re: windbg & vs 2005 - can't use debugging symbols on vs2005 dlls!




> The application migrated to vs2005 with little to no trouble, and was able
> to debug vs2003 pdbs/dlls fine. The problem is when we migrated our dlls to
> vs2005, suddenly their symbols would not load anymore (and they also appear
> to crash, even though they compile fine, which is why I tried to debug). The
> only thing I'm trying to do right now is load the vs2005 version dlls, in
> either windbg or vs2005- neither is letting me.
>
> When I debug the app, the app's symbols load in correctly, but no dll
> symbols. Likewise, when I debug the dlls solution with the app, the app will
> load, but the dlls will not.
>
> I haven't changed any of the dll settings- they are all linked with:
> /PDB:<pdb file path>
> /DEBUG
> and compiled with:
> /Zi
>
> The bizarre twist is that this all works correctly on another machine, with
> exactly the same compile/link options. Could it be due to remnants of VS2005
> beta, which was installed at one time, but removed via the uninstaller helper
> app?
>

What happens if you copy the DLLs and PDBs built on the machine where
it does not work to the machine where it does work? Will the debugger be able
to load symbols for the DLLs?

Also make sure that the DLLs are loaded from the expected locations
(check the path in debugger's Modules window) (e.g. to verify that older versions
of the DLLs do not get loaded by mistake).

When debugging in WinDbg, run the following commands:

!sym noisy
..reload /f yourdll.dll
!lmi yourdll.dll

(yourdll.dll should be one of the problematic DLLs)

What output will be reported by WinDbg?
(please use one of the latest versions of WinDbg, at least 6.5)

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]



.



Relevant Pages

  • Re: Memory limit reached with Windows Mobile
    ... look at the CF 1.0 perf counters first, and then watch the app with RPM ... 1- Load the same DLL over and over. ... - after 60 DLLs loaded with, ... Loading native DLLs takes at least 64k each. ...
    (microsoft.public.pocketpc.developer)
  • Re: Memory limit reached with Windows Mobile
    ... Before loading my DLLs, it returns 28,180,480. ... I then load my DLLs until I get a MissingMethodException trying to ... look at the CF 1.0 perf counters first, and then watch the app with RPM ... good thing due to the 64k minimum virtualmemorysize each will take. ...
    (microsoft.public.pocketpc.developer)
  • Re: Help Adding Apps to CE 6.0 OS Design
    ... the OS design - so that I can then debug not only the app, ... You can do application debug ... .dlls, do I need to add the libs and dlls used by my app to the MODULES ... be in the OS via the BIB file or b) copied to the device in some way before ...
    (microsoft.public.windowsce.app.development)
  • Re: how to debug more than one COM object at the same time
    ... DLLs you have just compiled. ... Load the DB ... use the instance of VB to load the DLL from and you can debug, ... > i have a COM object for the business tier and another one for the DB ...
    (microsoft.public.inetserver.asp.components)
  • RE: DLL DEBUG MODE IN CPP
    ... has suffered numerous automated migrations through Visual Studios 2003, 2005, ... was impossible for the IDE to create for me, as commanded, a working debug ... version using the runtime DLLs. ... "William McIlroy" wrote: ...
    (microsoft.public.dotnet.languages.vc)