[Gtk-sharp-list] Gtk# and threading, crash of the dll.

Gennadiy Donchyts don at env.com.ua
Fri Dec 16 12:34:31 EST 2005

Hi all,

as I know Gtk# is not thread-safe (is it planned to be?). I guess it is the
reason of my errors,
I have an application (1) which starts a separate thread (2) when some task
starts and that task makes calls
to custom dll using pinvoke. Is it safe to attach to events of (2) in (1)
and to send results to some Widget when
they are invoked?

Another thing is a little bit offtop but ... when I kill a child thread with
Thread.Abort() the next time I start it
it can't make calls to the underlying C++ dll anymore :((, probably someone
experienced this kind of problem?

I also saw some attrbutes which can make my calls to the dll library more
safe (in case they damage some memory)?
Because when I exit my application I usually get something like Debug Error:
DAMAGE: before Normal block (#-134134241) at 0x054532344

Thanks in advance,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20051216/ddac9caa/attachment.html

More information about the Gtk-sharp-list mailing list