Hi Jakub,
TImage implementation was not intended to be thread-safe at
the time it was created. If it's possible could you send me reproducible
example to investigate. Which platform do you use, version,
script or compiled code? Which methods of TImage you need to
be threadsafe.
Regards. Valeriy
Hello,
I've following problém with TImage class. I use TImage::Open to load images. Everything was ok until I decided to use more threads, after that is started to fail with "Error in <TBufferFile::WriteObjectAny>: ptrClass argument may not be 0". I don't use any other ROOT functions and each thread works with its own data, there is no data sharing.
My code:
TImage *img = TImage::Open(m_FilePaths[m_DataFileID].c_str());
unsigned int *data = img->GetArgbArray();
// ... some read operations on the data
So, is the TImage::Open thread-safe? I can't see why it shouldn't be, but I want to be sure. If it's really thread-safe, what can be the problem here?
Thanks in advance
Best regards
Jakub Čermák Received on Wed Apr 11 2012 - 06:51:41 CEST
This archive was generated by hypermail 2.2.0 : Thu Apr 12 2012 - 05:50:01 CEST