[fpc-pascal] RTLeventWaitFor Timeout

Dimitrios Chr. Ioannidis d.ioannidis at nephelae.eu
Tue May 19 11:40:22 CEST 2015

On 19-05-2015 12:31, Michael Van Canneyt wrote:
> On Tue, 19 May 2015, Dimitrios Chr. Ioannidis wrote:
>> Hi all,
>>  As I read that the TEvent is using obsolete functions I switched to 
>> RTLEvent. Now the RTLeventWaitFor has a TimeOut parameter declared as 
>> longint but in synobjs the INFINITE is Cardinal.
> There is no reason to abandon TEvent ?
> Why did you do that ?

As you know,  in TEventObject.WaitFor it uses basiceventWaitFor in line  
Result := TWaitResult(basiceventWaitFor(Timeout, Handle)); and the 
basiceventWaitFor is marked as 'Obsolete. Don't use' even in 2.6.

Should I revert to use TEvent ? Did I missed something ?

Dimitrios Chr. Ioannidis

More information about the fpc-pascal mailing list