never gets called?
Just wondered. For some reason, it's never been called for me. Just something simple like an object which never gets passed around anywhere. I put it into a TList when it's created and then only address it by cycling through all entries on the list. When I'm done with it, I remove it from the list and if the list is empty, I nullify the list too.
The list gets nullified so the list is certainly empty. But the delete method is never called. It never has been in any code I've ever written. Just wondered if it's a bug or if it's only supposed to be called under certain circumstances.
Just wondered. For some reason, it's never been called for me. Just something simple like an object which never gets passed around anywhere. I put it into a TList when it's created and then only address it by cycling through all entries on the list. When I'm done with it, I remove it from the list and if the list is empty, I nullify the list too.
The list gets nullified so the list is certainly empty. But the delete method is never called. It never has been in any code I've ever written. Just wondered if it's a bug or if it's only supposed to be called under certain circumstances.