[MonoDevelop] What is the correct way of closing a Gtk dialog?

Michael Hutchinson m.j.hutchinson at gmail.com
Thu May 22 16:27:54 EDT 2008


On Thu, May 22, 2008 at 3:35 PM, Mike Kestner <mkestner at gmail.com> wrote:
> Conversely, calling Destroy does call Dispose (in most cases, and even
> more with a bugfix earlier this week :-)).  Hopefully your suggested
> pattern of overriding Dispose to invoke Destroy is guarded for
> reentrancy.

Dispose should always be safe to be called multiple times, yes, which
generally means starting with
if (disposed) return;
disposed = true;

or equivalent.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list