Hi Adnan, Both issues that you are observing stem from incompatible pointers. If you make all your objects/view use QSharedPointer (e.g., by enabling the Qt profile), then you should use QSharedPointer in relationships (the first issue) or when getting a result from calls like query_one() (second issue). Boris