Re: Threads and appMessage()....

Micah Dowty <[email protected]>
Newsgroups gmane.comp.video.picogui.devel
Message-ID <[email protected]>
The C client library isn't designed to be thread-safe yet. Only call its API functions
from the same thread you called pgInit() from. The only solutions are to either make the
C client lib thread-safe (hard given it's design- it needs a rewrite) or to pass a message
from your secondary thread back to your main thread somehow. You could use a pipe and
pgCustomizeSelect().

On Mon, Mar 24, 2003 at 05:03:24PM +0200, Okan VURAL wrote:
> 	Hi All,
> 	There are two process main program and the thread job in my project. And when i want to send an app message from the thread function, main program  seems to crash. Can anyone clarify this ? Is there any solution of this or is it his that; GUI functions can't be called in thread functions...?
> 	Thanks anyway...
> 	Okan VURAL
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Pgui-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel

-- 
Only you can prevent creeping featurism!


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.