[Lazarus] TRTLCriticalSection

patspiper patspiper at gmail.com
Tue Feb 25 12:22:41 CET 2014


On 25/02/14 12:56, Mattias Gaertner wrote:
> On Tue, 25 Feb 2014 11:22:57 +0100
> Antonio Fortuny <a.fortuny at sitasoftware.lu> wrote:
>
>> [...]
>>       FIniCriticalSection: TRTLCriticalSection;
>>       ...
>>       InitializeCriticalSection(FIniCriticalSection); <-----------------
>> compilation error
> A TRTLCriticalSection is initialized with
> InitCriticalSection from the system unit.

I didn't notice that difference. But what about 
http://bugs.freepascal.org/view.php?id=25187 ?

LCLIntf's (winapi.h) EnterCriticalsection(TCriticalSection) always takes 
precedence in compilation although codetools show it defined in 
threadh.inc: EnterCriticalsection(TRTLCriticalSection).

Stephano




More information about the Lazarus mailing list