So to use the component in asynchronous mode you must only use one
thread?

Is there any other benefit in using TDataModule apart from being able to
see the components?  I thought TDataModule could receive windows
messages but I was sadly disappointed.

Cheers
Stephen

-----Original Message-----
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
On Behalf Of Francois PIETTE
Sent: Thursday, 17 February 2011 3:41 PM
To: ICS support mailing
Subject: Re: [twsocket] Asychronous opperation of
OverBytecomponents-Automated processes

> Am I right in saying that your "asynchronous design pattern" would
treat
> each "automated process" as an object with inputs and outputs

Yes, we are in an object oriented programming world.

> but this objects code should only be executed as part of the main
thread?

Depends. Basically it would be executed as part of a single thread, the
main 
or another one because communication do to use a lot of CPU and a single

thread is usually able to handle a lot of simultaneous connections.


> I.e. I think using a TDataModule in this manner is essential the same
> philosophy of the design of a state machine.

Yes indeed. A TDataModule is just a container which is handly to use
within 
the IDE for visual programming. But of course you may do exactly the
same 
with a simple TObject derived class.

> I assume to use a TDataModule to do this you would have to keep track
of 
> the current
> state/step/status/... so the code could respond appropriately to any
> events and advance/abort/... the process?

Yes indeed.
If you look at many of the high level components in ICS, you'll see that

they conatin a finite state machine. Even TWSocket itself has a state 
machine.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
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
--
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