CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Join Date
    Oct 2002
    Location
    Germany
    Posts
    6,205

    Re: Release version of application crashed!!!

    If the debugger is not able to help you with locating a crash when executing the release mode version, map files should (see my post above to learn how these are to be used).

    Map files are a standard way to locating the reason behind release-mode crashes, and an accurate way too - one I would recommend. If you are sure that the problem is with that TCHAR string usage, review the same and hopefully you'll fix it. BTW, map files can help you in being sure of this as the cause of the crash as well.

  2. #17
    Join Date
    Aug 2000
    Posts
    1,471

    Re: Release version of application crashed!!!

    Actually I executed a RELEASE version of my app from the command line and it will crash. But it won't crash if I execute a RELEASE version of app from VS IDE.
    Quote Originally Posted by JMS
    So you executed a debug version of your app from the command line and it still crashed?? Or, that's how you know it crashs you tried to execute it from the command line???

    1) Does the release version crash too when executed inside the IDE?
    2) Does the release version crash when you execute it from the comand line?
    3) Debug version works from the IDE
    a. in the debugger?
    b. when you execute it?


    Your problem could be in your configuration.... in you project settings you might have changed the working directory, thus executing from the DEBUG or release directories the program can't find config files (.ini) etc and blows up.

    Could be command line optioons in your project settings.. The IDE uses them and the command line version doesn't...

    Need to know more..

    Still running the release version inside the IDE using techniques others have already refferenced will allow you to isolate the line where problem exists..

  3. #18
    Join Date
    May 2000
    Location
    Washington DC, USA
    Posts
    715

    Re: Release version of application crashed!!!

    Actually I executed a RELEASE version of my app from the command line and it will crash. But it won't crash if I execute a RELEASE version of app from VS IDE.
    Ok, so can you execute a Debug version of your app in the ide? I'm assuming yes..

    Then can you execute a Debuf version of your app from the command line?


    If you can execute a release version from the IDE and then the same command line version caughs up a furball. Most likely your IDE is defining a different working directory to execute from (settings->general).... Or your IDE is passing in command line options which you aren't when calling from command line....

  4. #19
    Join Date
    Aug 2005
    Posts
    104

    Re: Release version of application crashed!!!

    In the registry, you can specify a particular debugger to get invoked when an application that isn't currently being debugged crashes.

    google for the "AEDebug" regkey. You could probably set the VS debugger to attach itself when the app crashes.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured