[Gtk-sharp-list] ComboBox leak?

Lluis Sanchez lluis at ximian.com
Thu Aug 24 21:13:31 EDT 2006


Forget it, looks like the top level window is destroyed by the
finalizer.

El dv 25 de 08 del 2006 a les 03:04 +0200, en/na Lluis Sanchez va
escriure:
> Run the following program:
> 
> public static void Main(string[] args)
> {
> 	Gtk.Application.Init();
> 	Console.WriteLine (Gtk.Window.ListToplevels ().Length);
> 	
> 	Gtk.ComboBox combo = new Gtk.ComboBox ();
> 	Console.WriteLine (Gtk.Window.ListToplevels ().Length);
> 	
> 	combo.Destroy ();
> 	Console.WriteLine (Gtk.Window.ListToplevels ().Length);
> }
> 
> It prints:
> 0
> 1
> 1
> 
> The new top level window is the menu used by the combo to show the
> options, but that window is not destroyed when destroying the combo. Is
> this a known issue or I'm missing something?
> 
> Lluis.
> 
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list



More information about the Gtk-sharp-list mailing list