Article

From:
To:
Andreas Kanthak
Subject:
Re: Error with TApdWinsockPort
Newsgroup:
turbocontrol.apro.general

Re: Error with TApdWinsockPort

Andreas,

> MySendData is called through a Timer thread in a very difficult way and is
> protected with critical sections but not over synchronize. In fact the timer
> thread does not call MySendData directly, it calls a timing control which
> decides if the MySendData is to be called (for example every 10 seconds).
> The received data is hold in a global buffer, which is processed later
> within the main thread. The software runs on several computers flawlessly in
> continuous operation (24/7) over months. In fact the most time the software
> has to be restarted after an electrical power outage. This is allways with
> serial communication. With Winsock, some customers are reporting missing
> data sooner or later. Thats why i am on that problem now. Thank God, I could
> reproduce the failure on my machine.

It sounds to me like TApdWinsockPort is being blocked (since it does not 
create three separate threads in winsock mode).  You'll probably need to 
rework your logic since what worked in serial mode doesn't work for winsock.

-- Regards, Paul Breneman http://www.TurboControl.com http://www.turbocontrol.com/TPSupport.htm - TurboPower support links
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Thu, 28 Mar 2024 15:57:38 UTC
Copyright © 2009-2024
HREF Tools Corp.