Re: TimeSetEvent
- From: Gert Baars <g.baars13@xxxxxxxxx>
- Date: Mon, 27 Nov 2006 00:11:23 +0100
Jamie schreef:
Gert Baars wrote:Sounds nifty but I assume this is to prevent
With TimeSetEvent a Callback function is assignedyou should have a BUSY flag in the call back code.
to execute at an interval.
In the callback a COM-port is polled and data is
processed. A certain loop within the callback
sometimes hangs (or is not exectuted) while
another runs normally. All processing is done within
the intervaltime (20mS). Should certain global
variables be protected to avoid this?
in the start of your code above the Var section
Const Busy :Boolean = false;
Begin
If Busy then Exit else Busy := true;
... do your code
Busy := false;
End;
P.s.
Make sure your compiler is set to have writeable constants.
reentrance before completion which is not the case.
.
- References:
- TimeSetEvent
- From: Gert Baars
- Re: TimeSetEvent
- From: Jamie
- TimeSetEvent
- Prev by Date: Re: restart application
- Next by Date: Re: restart application
- Previous by thread: Re: TimeSetEvent
- Next by thread: Adding an exixting database
- Index(es):
Relevant Pages
|