Results 1 to 4 of 4

Thread: Crash handler on Win32

  1. #1
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    21
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Crash handler on Win32

    Hello,

    I have an application and a customer reports it crashes from time to time. If I could get a backtrace - like the KDE Crash Handler does ist - i could probably find the bug.
    (I'm not able to reproduce the crash on my machine)

    How can I create such a backtrace without using a debugger?

    thanks,
    niko

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Crash handler on Win32


  3. The following user says thank you to marcel for this useful post:

    niko (8th November 2007)

  4. #3
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    21
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Crash handler on Win32

    can this be used with mingw?

    I get these errors when compiling the included crashcon application:
    Qt Code:
    1. mingw32-make -f Makefile.Release
    2. mingw32-make[1]: Entering directory `M:/Dokumente und Einstellungen/niko/Desktop/crashrpt_source/crashcon/src'
    3. g++ -c -O2 -frtti -Wall -fno-exceptions -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQ
    4. D_SUPPORT -DQT_NEEDS_QMAIN -I"m:\Qt\include\QtCore" -I"m:\Qt\include\QtCore" -I"m:\Qt\include\QtGui" -I"m:\Qt\include
    5. -I"m:\Qt\include" -I"." -I"..\..\wtl75\include" -I"m:\mingw\include" -I"m:\Programme\Microsoft Platform SDK\src\mfc"
    6. Qt\include\ActiveQt" -I"release" -I"." -I"m:\Qt\mkspecs\win32-g++" -o release\crashrpt.o ..\..\crashrpt\src\crashrpt.
    7. In file included from ..\..\crashrpt\src\/stdafx.h:15,
    8. from ..\..\crashrpt\src\crashrpt.cpp:11:
    9. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:19: warning: ignoring #pragma warning
    10. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:20: warning: ignoring #pragma warning
    11. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:21: warning: ignoring #pragma warning
    12. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:22: warning: ignoring #pragma warning
    13. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:23: warning: ignoring #pragma warning
    14. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:24: warning: ignoring #pragma warning
    15. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:25: warning: ignoring #pragma warning
    16. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:26: warning: ignoring #pragma warning
    17. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:27: warning: ignoring #pragma warning
    18. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:28: warning: ignoring #pragma warning
    19. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:29: warning: ignoring #pragma warning
    20. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:30: warning: ignoring #pragma warning
    21. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:31: warning: ignoring #pragma warning
    22. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:32: warning: ignoring #pragma warning
    23. In file included from ..\..\crashrpt\src\/stdafx.h:15,
    24. from ..\..\crashrpt\src\crashrpt.cpp:11:
    25. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:35:20: atldef.h: No such file or directory
    26. In file included from m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:50,
    27. from ..\..\crashrpt\src\/stdafx.h:15,
    28. from ..\..\crashrpt\src\crashrpt.cpp:11:
    29. m:/mingw/include/tchar.h:232:1: warning: "__TEXT" redefined
    30. In file included from m:/mingw/include/windef.h:246,
    31. from m:/mingw/include/windows.h:48,
    32. from m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:37,
    33. from ..\..\crashrpt\src\/stdafx.h:15,
    34. from ..\..\crashrpt\src\crashrpt.cpp:11:
    35. m:/mingw/include/winnt.h:106:1: warning: this is the location of the previous definition
    36. In file included from ..\..\crashrpt\src\/stdafx.h:15,
    37. from ..\..\crashrpt\src\crashrpt.cpp:11:
    38. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:57:21: crtdbg.h: No such file or directory
    39. m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:62:22: atliface.h: No such file or directory
    40. In file included from m:/Programme/Microsoft Platform SDK/src/mfc/atlbase.h:69,
    41. from ..\..\crashrpt\src\/stdafx.h:15,
    42. from ..\..\crashrpt\src\crashrpt.cpp:11:
    43. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:41: error: expected constructor, destructor, or type conversion
    44. "AtlDevModeW2A"
    45. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:41: error: expected `,' or `;' before "AtlDevModeW2A"
    46. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h: In function `WCHAR* AtlA2WHelper(WCHAR*, const CHAR*, int, UIN
    47. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:48: error: `ATLASSERT' undeclared (first use this function)
    48. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:48: error: (Each undeclared identifier is reported only once fo
    49. function it appears in.)
    50. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h: In function `CHAR* AtlW2AHelper(CHAR*, const WCHAR*, int, UINT
    51. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:60: error: `ATLASSERT' undeclared (first use this function)
    52. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h: In function `CHAR* T2A(TCHAR*)':
    53. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:186: error: cannot convert `TCHAR*' to `CHAR*' in return
    54. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h: In function `TCHAR* A2T(CHAR*)':
    55. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:187: error: cannot convert `CHAR*' to `TCHAR*' in return
    56. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h: In function `const CHAR* T2CA(const TCHAR*)':
    57. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:190: error: cannot convert `const TCHAR*' to `const CHAR*' in r
    58. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h: In function `const TCHAR* A2CT(const CHAR*)':
    59. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:191: error: cannot convert `const CHAR*' to `const TCHAR*' in r
    60. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h: In function `OLECHAR* A2WBSTR(const CHAR*, int)':
    61. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:196: warning: statement has no effect
    62. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:196: warning: statement has no effect
    63. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:196: warning: statement has no effect
    64. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:196: warning: statement has no effect
    65. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:199: warning: passing NULL used for non-pointer converting 6 of
    66. ultiByteToWideChar(UINT, DWORD, const CHAR*, int, WCHAR*, int)'
    67. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h: In function `OLECHAR* T2BSTR(const TCHAR*)':
    68. m:/Programme/Microsoft Platform SDK/src/mfc/atlconv.h:221: warning: statement has no effect
    To copy to clipboard, switch view to plain text mode 


    I installed wtl (-I"..\..\wtl75\include") and even microsoft sdk (-I"m:\Programme\Microsoft Platform SDK\src\mfc") - to get atlbase.h which was missing.

    niko

  5. #4
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    21
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Crash handler on Win32

    Finally I found something useful that works with mingw:
    http://jrfonseca.planetaclix.pt/proj...ngw/index.html

    You can also use exchndl.dll directly - without requireing to install drmingw - very nice

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.