[vtkusers] thread safety
Lodron, Gerald
Gerald.Lodron at joanneum.at
Wed Aug 29 02:47:30 EDT 2012
Hi
I programmed an own vtk Filter which internally has multiple threads. In each thread I create a vtkImageData object using
vtkSmartPointer<vtkImageData> oImage = vtkImageData::New();
the problem is that sometimes the New() operator crashes, I debugged it the the line 61 of vtkImageData.cxx:
this->Information->Set(vtkDataObject::DATA_EXTENT(), this->Extent, 6);
whereby the exact crash is in vtkInformationIntegerPointerKey.cxx on line 58:
if(this->RequiredLength >= 0 && length != this->RequiredLength)
wherehy the "this" pointer is zero. I am not so deep familiar with that, any suggestions?
DI Gerald Lodron
Machine Vision Applications
DIGITAL - Institute for Information and Communication Technologies
JOANNEUM RESEARCH Forschungsgesellschaft mbH
Steyrergasse 17, 8010 Graz, AUSTRIA
phone: +43-316-876-1751 personal fax: +43-316-876-91751
mobile: +43-699-1876-1751 general fax: +43-316-876-1720
web: http://www.joanneum.at/digital
e-mail: gerald.lodron at joanneum.at<mailto:gerald.lodron at joanneum.at>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120829/e8abf908/attachment.htm>
More information about the vtkusers
mailing list