Multithreaded TImage

From: Jakub Čermák <jakub_at_jcermak.cz>
Date: Mon, 9 Apr 2012 22:50:15 +0000


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 Tue Apr 10 2012 - 00:50:26 CEST

This archive was generated by hypermail 2.2.0 : Wed Apr 11 2012 - 11:50:02 CEST