[Gtk-sharp-list] Stability with GTK#

Luke Usher luke at resonline.com.au
Sat Apr 15 03:56:00 EDT 2006

The more I look at the problem the more it seems to be related to the stability of gtk and not with threading, the problems just seem to be much more evident when multiple threads are running.

As near as I can tell there appears to be some sort of conflict between the repaint event (not sure what it's called in GTK) and the widgets receiving data. If I don't move the mouse then the widgets don't update with the new data and everything runs fine. If I do move the mouse the widgets do get updated and this causes crashes. When the data is not changing there is no crashing.

What is the method to call paint events on widgets manually?

Is there a way to lock paint events?

-----Original Message-----
From: Luke Usher 
Sent: Thursday, 13 April 2006 9:01 AM
To: gtk-sharp-list at lists.ximian.com
Subject: RE: [Gtk-sharp-list] Stability with GTK#

Naturally it works fine (even with threading on) now that I want to reproduce that bugs :)

I managed to get one this morning that's a good example of the problems we've been having (and this one was kind enough to point us to the source of the crash) the stack trace is:

at Gtk.Entry.gtk_entry_set_width_chars(IntPtr raw, Int32 n_chars)

at Gtk.Entry.set_WidthChars(Int32 value)

at ResDesktopGtk.LMMTable_Item..ctor() in C:\Documents and Settings\luke\My Documents\Visual Studio 2005\Projects\ResDesktopGtk\ResDesktopGtk\UI\LMMTable_Item.vb:line 35

at ResDesktopGtk.LMMTable.init() in C:\Documents and Settings\luke\My Documents\Visual Studio 2005\Projects\ResDesktopGtk\ResDesktopGtk\UI\LMMTable.vb:line 52

at ResDesktopGtk.LastMinuteManager..ctor() in C:\Documents and Settings\luke\My Documents\Visual Studio 2005\Projects\ResDesktopGtk\ResDesktopGtk\LastMinuteManager.vb:line 46

at ResDesktopGtk.Main.Main() in C:\Documents and Settings\luke\My Documents\Visual Studio 2005\Projects\ResDesktopGtk\ResDesktopGtk\UI\Main.vb:line 84

at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)

at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)

at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ThreadHelper.ThreadStart()

-----Original Message-----
From: "Darío J. Cravero" [mailto:dario.cravero at gmail.com] 
Sent: Thursday, 13 April 2006 2:03 AM
To: Luke Usher
Subject: Re: [Gtk-sharp-list] Stability with GTK#

Hash: SHA1

Hi Luke, did any of the crashes reported any exceptions that weren't

Luke Usher escribió:
> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal,
> div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt;
> font-family:"Times New Roman";} a:link, span.MsoHyperlink
> {color:blue; text-decoration:underline;} a:visited,
> span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;}
> span.EmailStyle17 {mso-style-type:personal-compose;
> font-family:Arial; color:windowtext;} @page Section1 {size:595.3pt
> 841.9pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1
> {page:Section1;} -->
> We?re currently developing an application in vb.net with GTK# and
> having a few problems with application stability so I wanted to see
> if there was something about our setup that could be causing these.
> Most of the errors were getting are random access violation errors.
> This is as threaded app but even if we disable threading we get the
> same errors. We are currently using GTK# 2.8 (I believe this is the
> latest stable version??) with .net 2.0 on windows xp (32 bit) on amd
> 64 bit processors.
> Does anyone have any ideas/suggestions on the root cause of the problem?
> ----------------------------------------------------------------------
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com

More information about the Gtk-sharp-list mailing list