[fpc-pascal]signal handling under linux...
    Gene Buckle 
    geneb at deltasoft.com
       
    Sat Jul 28 19:08:15 CEST 2001
    
    
  
On Sat, 28 Jul 2001 11:43:13 +0200 (CEST), Adam Naumowicz wrote:
>On Fri, 27 Jul 2001, Gene Buckle wrote:
>
>> > NewSignal:=SignalHandler(CatchSignal);
>>
>> Adam, here the compiler is telling me that the incorrect number of
>> parameters have been specified.  Ideas?
>
>Sorry, I often use the Delphi syntax compatibility switch and that
>accepts
>the code. But in your case you have to add the address operator 
like:
>NewSignal:=SignalHandler(@CatchSignal);
>I think the typecast is also not neccesary when you change the type
>of
>CatchSignal formal parameter to Longint.
>Regards,
>Adam Naumowicz
Thanks.  I figured that out about an hour after I sent the message.  
Doh! :)
g.
-- 
http://www.f15sim.com - The only one of its kind.
    
    
More information about the fpc-pascal
mailing list