Goodmorning everyone,

I'm developing a multithreaded application that uses a class that inherits from QSharedMemory.

Since some time ago I was using classes that extended QThread that opens (creates if it hasn't been created or attaches in the other case) the shared memory object in the constructor and close it in the destructor.
I had sometimes problems when destroying the threads so I decided to switch to the moveToThread suggested approach. Using this last, it seems that I've get rid of the old problems but I've got new ones..

I'm using the deleteLater approach and now sometimes I get this error: "unable to set key on lock" in my constructor and other times, in the destructor it remains blocked on the detach. I read the QSharedMemory code ,including the Linux part (that I'm using), in order to understand how it works. It seems that it uses locks in the attach and detach so it seems like a deadlock problem.

Does anyone know what that error mean?



Cheers!