[Gtk-sharp-list] Removing all the widgets from a table Mac OSX GTK#

Michael Hutchinson m.j.hutchinson at gmail.com
Sat Jun 28 12:48:47 EDT 2008

On Sat, Jun 28, 2008 at 2:31 AM, Billy Schoenberg <wasbridge at gmail.com> wrote:
> Hi,
> I am having a problem removing all of the widgets from a table.  I use this
> code
> foreach ( Widget c in controller.GTKObjectPropertiesTable.Children)
>                 {
>                    controller.GTKObjectPropertiesTable.Remove(c);
>                 }
> to try to clear a table, but it gives this exception
>  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
>   at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff>
>   at Gtk.Application.Run () <0x0000a>
>   at Open_Dialect.MainWindow..ctor (string) [0x0070a] in
> /Users/Billy/Desktop/Open Dialect/Open
> Dialect/OpenDialect/FormsAndViews/MainWindow.cs:257
>   at Open_Dialect.Program.Main (string[]) [0x0005f] in
> /Users/Billy/Desktop/Open Dialect/Open Dialect/OpenDialect/Program.cs:43
>   at (wrapper runtime-invoke)
> Open_Dialect.Program.runtime_invoke_void_string[]
> (object,intptr,intptr,intptr) <0xffffffff>
> yes that is the full stack trace, it is missing pieces and I do not know
> why.  The first time this piece of code is called it works fine, removes the

It an unmanaged segfault in the main loop. Something you've done
leaves this in a state that doesn't immediately cause problems, but
makes the main loop crash.

> widgets from the table, but then after I reattach them and call this method

What's the code that you use to re-attach them?

> again it throws this exception.  Any ideas?  Who to report to?  I am having
> a lot of trouble registering for the Bugzilla at Novell.

Have you seen http://www.mono-project.com/FAQ:_Novell_Bugzilla ?

Also, are you using the X11 or "native" version of GTK on OS X?

Michael Hutchinson

More information about the Gtk-sharp-list mailing list