Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-03

fpPause function not working on 2.0.2 [2005/12/21] for x86_64

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Terry Kemp

The fppause function doesn't seem to work anymore. It just goes straight through with no 'm sure I have had this working
previously (using oldlinux unit).

Can anyone confirm if this works on 32 bit fpc.

thanks

Terry

Free Pascal Compiler version 2.0.2 [2005/12/21] for x86_64

{ Program to demonstrate the Alarm function. }

Uses baseunix,crt;
Procedure AlarmHandler(Sig : longint);cdecl;
begin
  Writeln ('Got to alarm handler');
end;
begin
  Writeln('Setting alarm handler');
  fpSignal(SIGALRM,@AlarmHandler);
repeat
  Writeln ('Scheduling Alarm in 10 seconds');
  fpAlarm(10);
  Writeln ('Pausing');
  fpPause;
  Writeln ('Pause returned');
 until keypressed;
end.