Stack/Debug reporting in a win32 app

This is a discussion on Stack/Debug reporting in a win32 app within the Windows Programming forums, part of the Platform Specific Boards category; Hello everyone. Are there any win32 (non-MFC) ways of reporting a stack trace or some sort of debug information for ...

  1. #1
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195

    Stack/Debug reporting in a win32 app

    Hello everyone. Are there any win32 (non-MFC) ways of reporting a stack trace or some sort of debug information for when my program crashes? I have try/catch blocks all over my code but There are places where there is unsafe code. or In some cases a try/catch block that encompasses multiple lies of code.

    Although this code is more of a safety feature for the users of my program, rather then myself. They would be able to email the stack trace/error report to me so I may fix it. I know some large programs (such as World of warcraft, etc) have an error reporting service with a memory dump, etc.

    Thank for your help!
    Founder and avid member of the Internationsl Typo Associateion

  2. #2
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    The simplest backtracing trick:
    Code:
    void BackTrace(int arg){
        DisplayNum("I will return to:",*(&arg-1));
        return;
    }
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adding a console window to a Win32 app
    By VirtualAce in forum Game Programming
    Replies: 7
    Last Post: 02-01-2009, 01:09 PM
  2. confusion win32 -console app
    By GanglyLamb in forum C Programming
    Replies: 2
    Last Post: 06-11-2003, 11:12 AM
  3. win32 and consele app.
    By master2000 in forum C++ Programming
    Replies: 5
    Last Post: 12-22-2002, 11:50 AM
  4. Console App Vs Win32
    By Jez_Master in forum C++ Programming
    Replies: 1
    Last Post: 04-07-2002, 06:46 PM
  5. Is it possible to get a console up with a win32 app?
    By SilentStrike in forum Windows Programming
    Replies: 2
    Last Post: 12-18-2001, 05:15 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21