Dobrý den.Můj první pokus v lazaru.
Jsem si myslel, že když opráším staré učebnice ze školy, tak to dam, ale omyl  

Toto funguje v delphi
Function OtevriThread(Param: Pointer): Longint;
begin
  beep;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
 thh: THandle;
 thid: Cardinal;
begin
 thh:=BeginThread(nil,0,@OtevriThread,nil,0,thid);
 if (thh<>0) then CloseHandle(thh);
end;V lazarusu není funkce CloseHandle, tak jsem nahradil za CloseThread(thh) a pod win take ok.
Když to však chci pod linuxem, tak mi to CloseHandle shodí celou apku.
Neporadí někdo?