I have posted previously about ongoing stability issues with gtk and I’ve narrowed down the problem somewhat. It appears that widgets inheriting box will randomly crash, usually in the constructor. It has generated access violation, null reference and fatal execution exceptions all with the following simple code:

 

VB:

 

Imports Gtk

Public Class main

    Public Shared Sub main()

        Application.Init()

        For i As Integer = 0 To 10000

            Dim vbox As New VBox

        Next

    End Sub

End Class

 

C#

 

namespace Project3

{

    class main

    {

        public static void Main()

        {

            Gtk.Application.Init();

            for (int i = 0; i < 10000; i++)

            {

                Gtk.VBox vbox = new Gtk.VBox();

 

            }

        }

    }

}

 

The same errors occur when substituting vbox with hbox or table. I’m using gtk# 2.8 from ms.net 2.0 on windows. Any suggestions on how to proceed from here?

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to