Is there any event called on a class when it is destroyed?
Specifically I have a class that creates a pooled DB handle. This class is instantiated from a server handler. Once the handler goes out of scope (and therefore, I assume, "destroyed" in the hands of the GC) the pool handle will survive if not manually released.
Of course I should release the handle myself, but I wanted to ensure that never got missed causing a leak.
This thread suggests no : https://www.b4x.com/android/forum/threads/classes-tutorial.18626/
but I though it worth asking as that's from 2012 and things might have changed.
Specifically I have a class that creates a pooled DB handle. This class is instantiated from a server handler. Once the handler goes out of scope (and therefore, I assume, "destroyed" in the hands of the GC) the pool handle will survive if not manually released.
Of course I should release the handle myself, but I wanted to ensure that never got missed causing a leak.
This thread suggests no : https://www.b4x.com/android/forum/threads/classes-tutorial.18626/
but I though it worth asking as that's from 2012 and things might have changed.