I found that if I had TLists in my classes, when I killed my class, sometimes the class would not get collected. The TLists should have gone out of scope and got collected, but they didn't. So, in my Destroy function, I erased any TLists. My classes then got collected.
This didn't always happen, just sometimes. And it may be because I left a reference to the TList somewhere else (but I don't think so).
Anyway, if you try clearing any TLists in your classes in the Destroy function, the problem may go away.
This didn't always happen, just sometimes. And it may be because I left a reference to the TList somewhere else (but I don't think so).
Anyway, if you try clearing any TLists in your classes in the Destroy function, the problem may go away.