Re: Continuous OnWorkEnd event in DLL

Giganews Newsgroups
Subject: Re: Continuous OnWorkEnd event in DLL
Posted by:  Martin James (mjames_falc…@dial.pipex.com)
Date: Wed, 26 May 2004

Why are you attemting this recursive call?  What's wrong with a simple loop?

repeat
    myHTTP.get();
    checkResult;
until terminated;

> Basically, my goal is to receive continuously values from a TCP/IP
connected
> device,

I have apps that do this.  A loop in the HTTP get thread continually gets a
web page from a server.  It extracts some tags into fields in a comms
object.  The thread keeps a copy of the previous tag values and, if the
latest differs from the previous, it postMessages off the object containing
the tag values to the main thread for further processing.

Been running for 8 months, no problems.

Synchronization - what synchronization?

and at the same time I want to embed all that synchronization stuff
> in a DLL.

If you have to... :)

Rgds,
Martin

Replies

In response to

Continuous OnWorkEnd event in DLL posted by Claire on Tue, 25 May 2004