[fpc-pascal] Events doesn't work in .lpr ?

Benedikt Schindler BeniSchindler at gmx.de
Fri Dec 11 11:32:22 CET 2009

>> I mean it is declared 4 lines earlier. where is the difference to the 
>> procedure DoRun ?
> The problem is that you are using Delphi/TP-style procvar syntax in 
> source code compiled {$mode objfpc}. Either add @ in front of 
> DoOnReciveCommand when assigning it to DoRun, or change {$mode objfpc} 
> into {$mode delphi}.


i thought of a problem like that, and changed my compiler default to 
But i forget that there is a compiler directive in line 2 that just 
switched it back to "objfpc".

thx again

More information about the fpc-pascal mailing list