Continuous event handling loop inside a DLL

From: Claire (ease_at_wanadoo.fr)
Date: 05/25/04


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



Relevant Pages

  • Re: How to insert URL in ASP.Net e-mail message
    ... > I went to the Indy site downloaded the DLL, added it to a test VB.Net ... > hosting company doesn't trust your DLL. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to insert URL in ASP.Net e-mail message
    ... you will see the Whois using Indy example working properly. ... I guess there is not much use in asking the hosting company if they ... >> I went to the Indy site downloaded the DLL, added it to a test VB.Net ... It uses the .net sockets internally as well. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to insert URL in ASP.Net e-mail message
    ... I used Indy with Delphi 6 and found it quite useful. ... I went to the Indy site downloaded the DLL, added it to a test VB.Net ... DLL created with Delphi 6 and Indy that does a Whois lookup with no problem. ... > filtered by spam filters you have to make an alternative type message. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Dll - Thread Questions
    ... Code does not "belong" to a thread. ... visible to anything in the DLL!) ... you will need to do a lot of synchronization to avoid conflicts. ... sends an asynchronous notification that it has completed. ...
    (microsoft.public.vc.mfc)
  • Re: Application design for shared data repository programmed in VC on Win32
    ... you can simply created a shared data segment in the DLL. ... The more flexible technique is to use a memory mapped file to store your ... synchronization techniques, such as a Mutex for synchronization. ... Also any futher suggestion for implementig this as a windows DLL, ...
    (microsoft.public.vc.language)