[Psi-Devel] [PATCH] adding support of crash log in win32
indepen-dev
lj_indepen-dev at mail.ru
Tue Jan 22 23:54:03 PST 2008
Hi!
This is a small stuff to have crash log on win32 platform,
based on StackWalker (http://www.codeproject.com/KB/threads/StackWalker.aspx).
If some exception occurs, then file "psi_crash.log" is created in
application working directory with a call stack of broken process.
(Example of crash log is in attachments).
This can be possible if you have "CONFIG += use_crash" in src/src.pro
file.
But there is a problem. When Psi crashes, I don't know how to notice
user about this. In my case (crash after connection timeout) I
couldn't show any dialog, because crash handler was called in not GUI
thread, and Qt raises ASSERT in that case. But if I use log file, all
is ok, but user can know about crash only because of disappeared
application (suddenly hidden roster window and removed system tray icon).
Well, Kev, if you decide to add this patches, maybe, they will be
helpful for someone.
--
WBR,
RomanU
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash.pri.patch
Type: application/octet-stream
Size: 441 bytes
Desc: not available
Url : http://lists.affinix.com/pipermail/psi-devel-affinix.com/attachments/20080123/724341ba/attachment-0004.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash_win32.patch
Type: application/octet-stream
Size: 4613 bytes
Desc: not available
Url : http://lists.affinix.com/pipermail/psi-devel-affinix.com/attachments/20080123/724341ba/attachment-0005.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stackwalker.patch
Type: application/octet-stream
Size: 51407 bytes
Desc: not available
Url : http://lists.affinix.com/pipermail/psi-devel-affinix.com/attachments/20080123/724341ba/attachment-0006.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: psi_crash.log
Type: application/octet-stream
Size: 10567 bytes
Desc: not available
Url : http://lists.affinix.com/pipermail/psi-devel-affinix.com/attachments/20080123/724341ba/attachment-0007.obj
More information about the Psi-Devel
mailing list