Slicer: 2145-support-for-installing-extension-from-file 8c53d089

Author Committer Branch Timestamp Parent
pieper pieper 2145-support-for-installing-extension-from-file 2013-08-09 10:12:42 2145-support-for-installing-extension-from-file 0baac1d1
Affected Issues 0001832: add try/catch around render calls and event processing
0003140: improve exception handling
0003209: Crash importing the directory
Changeset

BUG: 0001832 0003140 0003209 avoid crashes by catching exceptions

Some libraries and systems throw exceptions, but Qt's default
event processing does not catch them[1]. For example, slicer
could crash when ctkDICOMItem is pointed to a file that does
not exist. Wrapping event processing in try/catch should handle
other conditions, like out of memory exceptions thrown from
inside render operations (e.g. due to overly complex glyph
rendering).

[1] http://qt-project.org/doc/qt-4.8/exceptionsafety.html

http://stackoverflow.com/questions/10665655/how-to-log-uncatched-exceptions-of-a-qapplication

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22273 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Base/QTGUI/qSlicerApplication.cxx Diff File
mod - Base/QTGUI/qSlicerApplication.h Diff File