[Lazarus] TRTLCriticalSection

Sven Barth pascaldragon at googlemail.com
Fri Nov 29 12:23:38 CET 2013

Am 29.11.2013 12:00, schrieb Antonio Fortuny:
> Hi Folks.
> On Linux x86_°64 Opensuse, Lazarus 1.0.12, FPC 2.6.2
> Could anyone tell me why the next line
> *  EnterCriticalSection(CS);*
> with the following compiler error:
> /home/sources/production/lib/usimplelogger.pas(180,27) Error: Call by 
> var for arg no. 1 has to match exactly:/*Got "Pointer" expected 
> "QWord" :-\ */
> with somewhere before the declaration:
> *var
>   CS: TRTLCriticalSection;
> *
> whilst in threadh.inc the is:
> procedure EnterCriticalsection(var cs : TRTLCriticalSection);
> which is pointed to when Ctrl-Left Click on the source unit word: 
> *EnterCriticalSection
> *Withsame Lazarus/FPC into Win32 Vista no compiler error and runs OK
Can it be that some other unit redefines EnterCriticalSection or 
TRTLCriticalSection? Could you test a simple program where you use 
TRTLCriticalSection to ensure that nothing is wrong there?


PS: Would you please use text e-mails instead of HTML e-mails?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20131129/8fd63ebb/attachment-0003.html>

More information about the Lazarus mailing list