Hi Sebastian, mitk::DataNode`s should not be shared between threads. If you want to send events from threads to the main (GUI) thread, you should consider using the great Qt Thread API: http://doc.trolltech.com/latest/threads.html E.g. Qt supports a blocking mechanism for signals and slots, i.e. you can connect objects across threads.
Best regards, Michael -----Ursprüngliche Nachricht----- Von: sebastian ordas [mailto:[email protected]] Gesendet: Donnerstag, 21. April 2011 14:29 An: [email protected] Betreff: [mitk-users] Cannot send events to objects owned by a different thread Dear List, While debugging in Debug mode under VS, I experienced the following assertion: ASSERT failure in QCoreApplication::sendEvent: "Cannot send events to objects owned by a different thread. Current thread 159a25d8. Receiver 'SliderLevelWindowWidget' (of type 'QmitkSliderLevelWindowWidget') was created in thread bd37148", file kernel\qcoreapplication.cpp, line 348" This means e.g. that from any filter derived from SegmentationSink, in the method ThreadedUpdateFunction(), if a property in a node is changed: if (groupNode) { groupNode->SetVisibility(false); } an event is sent by "propertyobserver" and captured by "QmitkSliderLevelWindowWidget" The same may happen with other pair of objects. well, I just wanted to share this find. In my case, I will just try to avoid changing a node´s property from a threaded filter. If someone knows the correct way of doing so, please let me know have a nice day sebastian ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
