Re: VC7 debugger

From: Oleg Starodumov (oleg_staro_at_hotmail.com)
Date: 03/23/04


Date: Tue, 23 Mar 2004 14:03:56 +0200


> I have built a DLL in debug version.
> It runs fine when run from IDE but when I run the same debug dll from
> command line it crashes.
>

Probably the best solution is to attach a debugger to the application
when it crashed, and see why it crashed.

When running from IDE and without it, the following things can differ:
* Working directory
* Command line parameters
* Environment variables

If the problem is that the application/DLL works under debugger
but fails without debugger, some additional reasons are possible:

* Heap layout can be different when running under debugger and
without it (if Win32 heap is used, which is almost always true on
NT/2000/XP/2003 systems). Check for heap corruption.

* Unexpected thread serialization when running under debugger
(so that synchronization problems appear only when running without debugger).
Timing in general can also be different -> timing related problems
can appear.

Regards,
Oleg



Relevant Pages

  • Debugging
    ... On my WinXP Professional box at home, I can't get the debugger to start from ... I get the same error using NetBeans 3.5.1, ... The command the IDE is trying to execute - shown in the output window - is ...
    (comp.lang.java.softwaretools)
  • Re: Debugging
    ... > I now get no error when I select to run in the debugger, ... The reason for this is that the IDE tries to ... >> the command executes fine and I am able to attach to this VM in my IDE ... >> Having tried to run the command and failed, NetBeans sends me to the ...
    (comp.lang.java.softwaretools)
  • Re: Debugging
    ... I've now succeeded in altering the command used to start the debugger in the ... The reason for this is that the IDE tries to use a ... I get the same error using NetBeans 3.5.1, ...
    (comp.lang.java.softwaretools)
  • Re: Traceback information for EXEs linked with /DSF
    ... >would prefer not to use /DEBUG, principally because the Debugger ... >starts up when the EXE is called. ... If via foreign command or verb, ... >available when the application crashes. ...
    (comp.os.vms)
  • VS.NET crashes using Goto and Find commands
    ... When I press CTRL-G or click Edit> Goto in Visual Studio.NET 2003, the IDE ... crashes. ... The same thing happens if I am using the Find command and ...
    (microsoft.public.vsnet.ide)