In my current app, I only have a main thread. So, does this, "...this may cause a lot of trouble", apply? I should expect trouble if I have multiple ICS components all executing on the main thread?

-------- Original Message --------
Subject:        Re: [twsocket] Conflicts between multiple instances
Date:   Thu, 16 Jul 2009 08:58:49 +0200
From:   Francois Piette <francois.pie...@skynet.be>
Reply-To:       ICS support mailing <twsocket@elists.org>
To:     ICS support mailing <twsocket@elists.org>
References:     <4a5e4805.5060...@ezriver.com>



Is there a problem having multiple instances of ICS
socket objects on the same thread?

Defenitely no problem.

The most frequent error when using ICS components in a thread is to forget
you must create the component from with the thread's execute method. If you
create the component from the thread's constructor, then all events will be
executed in the context of the creating thread (usually the main thread).
And this may cause a lot of trouble.
--
francois.pie...@overbyte.be
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.375 / Virus Database: 270.13.16/2240 - Release Date: 07/15/09 
17:58:00

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to