qx::clone failure
Posted: Fri Nov 04, 2016 5:20 am
I'm experiencing a new issue with the qx framework. I am unable to use the qx::clone functionality as advertised with my complex tree structures.
If I clone my structure and motion to delete it, I receive QList<Type> double delete issues. I confirmed by enabling QT_SHAREDPOINTER_TRACK_POINTERS. Somehow the boost framework (I think) is rebinding the same QSharedPointer<T> into multiple QList. What I can say is that my original structure would have exhibited the same QSharedPointer<T> in multiple places throughout my tree. That said, I was under the impression that boost could follow and reuse identical pointers across the structure.
On a possible related note. What does _QX_ENABLE_BOOST_SERIALIZATION_POLYMORPHIC do?
Many of my objects have abstract base classes.
At any rate I know I'm not giving you a lot to work with. I'm hoping to spur some conversation. Tomorrow I could provide a stack trace and more.
Thanks,
SH
If I clone my structure and motion to delete it, I receive QList<Type> double delete issues. I confirmed by enabling QT_SHAREDPOINTER_TRACK_POINTERS. Somehow the boost framework (I think) is rebinding the same QSharedPointer<T> into multiple QList. What I can say is that my original structure would have exhibited the same QSharedPointer<T> in multiple places throughout my tree. That said, I was under the impression that boost could follow and reuse identical pointers across the structure.
On a possible related note. What does _QX_ENABLE_BOOST_SERIALIZATION_POLYMORPHIC do?
Many of my objects have abstract base classes.
At any rate I know I'm not giving you a lot to work with. I'm hoping to spur some conversation. Tomorrow I could provide a stack trace and more.
Thanks,
SH