<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<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><b><big><font
face="Helvetica, Arial, sans-serif"><br>
</font></big></b><big><font face="Helvetica, Arial, sans-serif"><br>
Antonio.</font></big><b><big><font face="Helvetica, Arial,
sans-serif"><br>
</font></big></b>
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
<tr>
<td style='border:none;padding:0px 15px 0px 8px'>
<a href="http://www.avast.com/">
<img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" />
</a>
</td>
<td>
<p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection <a href="http://www.avast.com/">Antivirus avast!</a> est active.
</p>
</td>
</tr>
</table>
<br />
</body>
</html>