Lorenz,

Good call. I went back through the code. Was actually a QList<> not a QHash, but . . . your mention of shared was the light which shined on the monster. The pointer held in the QList was a pointer to an object declared with CANBUSSHARED_EXPORT.

Thank you very much!

I hate mystery fixes.

Roland


On 09/23/2016 08:06 AM, Lorenz Haas wrote:
It was a C++ for (int x=0;...) loop, but we are compiling for C++ 11
Hm, then my guess would be that they were working on a QHash/container
that was shared and the first remove() performed a detach. Thus the
loop worked on a copy.

Best
Lorenz

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to