Does anyone know why the treenodes in my treeview are getting freed when I collapse the tree? I don't have any code that is doing this. I thought it might be my treenode.data going out of scope but those are all now global variables, so that can't be it.