[Mono-bugs] [Bug 45962][Cri] Changed - Destructor (or Finalize() if you prefer) is never invoked

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 8 Jul 2003 10:50:44 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gonzalo@ximian.com.


--- shadow/45962	Tue Jul  8 10:48:12 2003
+++ shadow/45962.tmp.17337	Tue Jul  8 10:50:43 2003
@@ -99,6 +99,12 @@
 Created an attachment (id=4802)
 Tarball containing the source code for reproducing the problem
 ------- Additional Comments From gonzalo@ximian.com  2003-07-08 10:48 -------
 Fixed in CVS.
+------- Additional Comments From gonzalo@ximian.com  2003-07-08 10:50 -------
+Just one more comment: you don't know when the finalizers are invoked
+if at all. Id est, don't make your code rely on calls to the
+finalizers. Use the IDisposable interface to explicitly disposing
+precious resources.