One of the DICOM widgets crashed the Qt designer because ctkDICOMScheduler::~ctkDICOMScheduler() called ctkJobScheduler::waitForDone, and that method called processEvents(). After returning form processEvents() the application crashed because the "this" pointer has become invalid (probably the ctkDICOMScheduler object got deleted).
Solved the issue by removing processEvents() from ctkJobScheduler::waitForDone, and instead calling processEvents() before calling ctkJobScheduler::waitForDone.
@Punzo please have a look and feel free to suggest a better design.
One of the DICOM widgets crashed the Qt designer because ctkDICOMScheduler::~ctkDICOMScheduler() called ctkJobScheduler::waitForDone, and that method called processEvents(). After returning form processEvents() the application crashed because the "this" pointer has become invalid (probably the ctkDICOMScheduler object got deleted).
Solved the issue by removing processEvents() from ctkJobScheduler::waitForDone, and instead calling processEvents() before calling ctkJobScheduler::waitForDone.
@Punzo please have a look and feel free to suggest a better design.