Synchronize( ) for multithreads lazarus / 13-General ---------------------------------------------------------------------- fdsingleton · 2020-05-27 20:29 When I compile with the Lazarus IDE, Synchronize(@methodname) requires the "@" otherwise an error.  When I compile without the IDE it finds that the using @ is an error, i.e. only Synchonize(methodname) works.  Windows 7, latest Lazarus with FP 3.0.4.  32 bit. ---------------------------------------------------------------------- marcov · 2020-05-27 20:48 You can set modes on the commandline using -S parameters, or in source with $Mode. If you rely on the commandline, or the IDE to do so in the commandline, you need to pass appropriate parameters in other cases too. Or use {$mode delphi} or {$mode objfpc} systematically.