[Mono-bugs] [Bug 78394][Nor] Changed - Control.Disposed event doesn't get fired...

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun May 14 13:27:19 EDT 2006

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 xenomorph2 at onlinehome.de.


--- shadow/78394	2006-05-14 12:43:56.000000000 -0400
+++ shadow/78394.tmp.24129	2006-05-14 13:27:19.000000000 -0400
@@ -38,6 +38,21 @@
 We also had a bug that claimed disposed wasn't called and the 'proof' 
 was that CWLs weren't making it. From what I've been told, it could 
 be as simple as stdout being closed before those controls are getting 
 disposed. I'm not in the office today, so I can't test, but throw 
 a 'throw new Exception()' in your dispose handler and see if it 
 throws, to test if it's being called.
+------- Additional Comments From xenomorph2 at onlinehome.de  2006-05-14 13:27 -------
+I wrote "Just a reminder for Peter :-)".
+I know that I had a bug like this and we already talked on irc that
+one thing was missing, controls != forms don't fire Disposed events.
+I made a new test case.
+This time, when you press the button on the form, a new dialog gets
+created. On that dialog is a button and a method (OnButtonDisposed) in
+the form code gets added to the button Disposed event.
+When the new dialog gets disposed (with newDialog.Dispose()) on
+windows a MessageBox opens but mwf doesn't do anything.

More information about the mono-bugs mailing list