As I know, there's no guarantee that Object.finalize()
is called always. but If there an important non-GC resource, and user didn't call close()
accidentally, How can I free the resource?
PS. Does Object.Finalize()
in .NET have the same problem? If so, how can I solve this problem in that case?