[Gtk-sharp-list] Newbie's TreeView updates *very* slowly

Chris Howie cdhowie at gmail.com
Wed Dec 31 14:11:53 EST 2008


On Wed, Dec 31, 2008 at 1:42 PM, fourthirtysix <fourthirtysix at yahoo.com> wrote:
> This did the trick perfectly. Thanks!  The combination of splitting the
> database/memory intesive parts of the program into Threads was the first
> step.  Then, your suggestion to use Application.Invoke got the GUI to update
> more cleanly while the intensive operations were still running.
>
> Now I'm off to work on the next section of the program.  Thanks again!

Glad it's working.  Just remember that *any* time you modify GUI stuff
you should use Application.Invoke if you are on another thread.  Read
operations are usually safe, I think.

See http://mono-project.com/Responsive_Applications#Gtk.Application.Invoke

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Gtk-sharp-list mailing list