[Lazarus] Class TThread in linux;

silvioprog silvioprog at gmail.com
Fri Nov 25 00:07:04 CET 2011


2011/11/24 Everton Vieira <tonvieira at gmail.com>:
> In the creation of a TThread in Linux, openSuse recently installed, causes
> an exception and close the application.
>
> Even without the debug same resul t.By what I've read on wiki about it, the
> error should appear only under debug.
>
> Anyone knows something about it?
>
> --
> Everton Vieira.

Use:

{$DEFINE UseCThreads}

E.g:

program project1;

{$mode objfpc}{$H+}
{$DEFINE UseCThreads}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Interfaces, ....

-- 
Silvio Clécio
===============================================
Blog - <silvioprog.com.br>
Twitter - <twitter.com/silvioprog>
Facebook - <facebook.com/silvioprog>
LazSolutions - <code.google.com/p/lazsolutions>
Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR>
===============================================
   * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===============================================




More information about the Lazarus mailing list