Re: [twsocket] Conflicts between multiple instances

2009-07-16 Thread Francois Piette
 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


[twsocket] Conflicts between multiple instances

2009-07-15 Thread Mike Lenox
Is there a problem having multiple instances of ICS socket objects on 
the same thread? I have a Delphi app (single threaded) with different 
ICS-based objects in various units. I saw today what looked like 
crossover functionality between some of them. I'm getting TTimer access 
violation errors that only occur if I am simultaneously running a TTnCnx 
client in one unit and a TWSocketServer server in the other ... AND ... 
the errors only occur after I have made and closed a connection to the 
server. If the TTnCnx client is not active, I can make and break 
connections to the sever indefintely without any TTimer issues. If the 
server is not running, TTnCnx works fine indefinitely. But, if both are 
active and I make and break a single server connection, after a 
predictable amount of time (~3min) I will get repetitive TTimer access 
violations.


Does ICS use any singletons in a thread (globals) or anything that might 
tie these two uses together somehow?



--
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