Re: AW: [twsocket] ProcessMessages

2005-05-03 Thread Wilfried Mestdagh
Hello Markus,

> So the sending part must be in another thread and call MessageLoop as well
> until the OnDataSent terminates the thread?

No you may only call methods of a component in general in the same
thread context as the one where they are created. Same thing for the
message pump, you have to call the one "in" and "from" the thread that
created the pump.

---
Rgds, Wilfried
http://www.mestdagh.biz


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


AW: [twsocket] ProcessMessages

2005-05-03 Thread Markus . Humm

> 
> > - the sending TWSocket doen't need to be created in an 
> thread because that
> > sends at once (nearly) without the need of windows messages
> 
> Wrong. Sending and receiving btoh use messages, even if in 
> some cases it seems to be direct.

So the sending part must be in another thread and call MessageLoop as well
until the OnDataSent
terminates the thread? Or how can I do this?

Greetings

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


AW: [twsocket] ProcessMessages

2005-05-03 Thread Markus . Humm
> > There are two other components in the dll which 
> > suffer from the very same
> > problem. One is the timer and another is one for the 
> > other communication method which
> > doesn't have a processmessages. 
> 
> Obviously, you failed to have a working message pump.
> 
> > Do you have any hints for these as well?
> 
> Study the IcsDll1 sample program !
> 

Okay, did I understood it right:

- the receiving TWSocket can't be a static component on the datamodule
because
  it has to be in a thread?

- the sending TWSocket doen't need to be created in an thread because that
sends
  at once (nearly) without the need of windows messages

Greetings

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