Thanks.
Can you please tell me what I need to check corresponding to threads.
Since the product was working perfectly fine in Qt3.x( I have verified that) I am at a loss as to what I need to check.
Sometimes I get in Qt4 (which I did not get in Qt3]
QPixmap:it is not safe to use pixmap outside GUI thread, so it probably points to some threading issue
One thing I wanted to notify is, we were also using QApplication::lock() in our code but since Qt4 has made QApplication::lock() obsolete, I used QMutex mutex(QMutex::Recursive) [lock/unlock] function
The reason for using Recursive was sometimes the code has a lock inside a lock [and as told was working in Qt3]
LOCK: //QApplication::lock
funcA();
UNLOCK;
funcA(){
LOCK:
...
UNLOCK:




Reply With Quote


Bookmarks