Continuous event handling loop inside a DLL
From: Claire (ease_at_wanadoo.fr)
Date: 05/25/04
- Next message: Svein M. Bringsli: "Re: DelphiX TDXImageList"
- Previous message: Fred: "cut from TRichEdit paste to email loses some formatting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 25 May 2004 22:35:15 +0200
Basically, my goal is to receive continuously values from a TCP/IP connected
device, and at the same time I want to embed all that synchronization stuff
in a DLL.
OnWorkEnd (Indy) event in my DLL fires as required when some DLL functions
are called from an external code (via a callback procedure), but I expected
that in following sequence MyHTTP.Get would produce an infinite loop, which
is not true:
procedure MyHTTP.MyOnWorkEnd(Sender: TObject; AWorkMode: TWorkMode);
begin
if AWorkMode = wmRead then
begin
MyCallbackFunc(pchar(Respnse));
Respnse := pchar(MyHTTP.Get(AURL));
end;
end;
The question is more general and not only Indy specific.
Any suggestions or comments are much appreciated.
Claire
- Next message: Svein M. Bringsli: "Re: DelphiX TDXImageList"
- Previous message: Fred: "cut from TRichEdit paste to email loses some formatting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|