Continuous OnWorkEnd event in DLL

Giganews Newsgroups
Subject: Continuous OnWorkEnd event in DLL
Posted by:  Claire (ea…@wanadoo.fr)
Date: Tue, 25 May 2004

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

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.

Any suggestions or comments are much appreciated.

Claire

Replies