<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 29.11.2013 12:00, schrieb Antonio
Fortuny:<br>
</div>
<blockquote cite="mid:l79s4q$n08$1@ger.gmane.org" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<font face="Helvetica, Arial, sans-serif">Hi Folks.<br>
<br>
On Linux x86_°64 Opensuse, Lazarus 1.0.12, FPC 2.6.2<br>
Could anyone tell me why the next line<br>
<b><big> EnterCriticalSection(CS);</big></b><br>
with the following compiler error:<br>
/home/sources/production/lib/usimplelogger.pas(180,27) Error:
Call by var for arg no. 1 has to match exactly:<i><b><big> Got
"Pointer" expected "QWord" <span class="moz-smiley-s7"><span>
:-\ </span></span></big></b></i><br>
with somewhere before the declaration:<br>
<b><big>var<br>
CS: TRTLCriticalSection;<br>
</big></b><br>
whilst in threadh.inc the is:<br>
procedure EnterCriticalsection(var cs : TRTLCriticalSection);<br>
<br>
which is pointed to when Ctrl-Left Click on the source unit
word: </font><b><big><font face="Helvetica, Arial, sans-serif">EnterCriticalSection<br>
<br>
</font></big></b><big><font face="Helvetica, Arial,
sans-serif">With</font></big><big><font face="Helvetica,
Arial, sans-serif"> same Lazarus/FPC into Win32 Vista no
compiler error and runs OK</font></big><big><font
face="Helvetica, Arial, sans-serif"></font></big><br>
</blockquote>
<font face="Helvetica, Arial, sans-serif">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?<br>
<br>
Regards,<br>
Sven<br>
<br>
PS: Would you please use text e-mails instead of HTML e-mails?<br>
</font>
</body>
</html>