[Gtk-sharp-list] Accessing System.Drawing.Bitmap from GTK# Thread throws Object Currently in use elsewhere exception
cool_rainbow at rocketmail.com
Thu Jan 8 06:49:50 UTC 2015
Im trying to manipulate an image using system.drawing in GTk#.I want the UI
to update the image on screen as soon as the user updates a textbox.To
implement this i tried using the background worker from winforms,it worked
but when the textbox is updated at a higher speed the application becomes
stuck with no error.
So i took a look at multithreading in GTK here
created a thread .
Thread thr = new Thread (new ThreadStart (ThreadRoutine));
static void ThreadRoutine ()
static void LargeComputation ()
//Long image processing
It works poorly than the background worker throws up object currently in use
elsewhere error here image=new Bitmap(backupimage); when the speed of entry
in textbox is even a little fast.What im i doing wrong ?
View this message in context: http://mono.1490590.n4.nabble.com/Accessing-System-Drawing-Bitmap-from-GTK-Thread-throws-Object-Currently-in-use-elsewhere-exception-tp4665133.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list