Tomek got it right. Fixed by copying the objects, rather than using pointers. 
Thanks!

Reply via email to