[lazarus] Runtime error 232, when creating TThread in Ubuntu

2008-02-01 Thread Marco Alvarado
I have this class that inherits TThread. I compile and execute
successfully an application that instantiates it with Delphi and
Lazarus, on Windows. But when I execute the same Lazarus project in
Ubuntu, I get the following error dialog:

Project raised exception class 'RunError(232)'.

When I click [OK] i get another dialog:

Execution paused
Address: $08067027
Procedure: SYSTEM_NOTHREADERROR
File:

Another dialog, and the IDE stops at the first line of the thread
constructor that simply looks like this:

//..
constructor cm_cHilo.Crea(
  Suspendido,
  Libre: Boolean
  );
begin
  Create(Suspendido);

  FreeOnTerminate := Libre;
  cm_TomaProcesadores(_CuentaProcesadores, _MascaraProcesadores);
end;


How can I enable threads for Linux?

Thanks!
-Marco

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Runtime error 232, when creating TThread in Ubuntu

2008-02-01 Thread Vincent Snijders

Marco Alvarado schreef:

I have this class that inherits TThread. I compile and execute
successfully an application that instantiates it with Delphi and
Lazarus, on Windows. But when I execute the same Lazarus project in
Ubuntu, I get the following error dialog:

Project raised exception class 'RunError(232)'.

When I click [OK] i get another dialog:

Execution paused
Address: $08067027
Procedure: SYSTEM_NOTHREADERROR
File:




See FAQ:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Runtime error 232, when creating TThread in Ubuntu

2008-02-01 Thread Marco Alvarado
Thanks! Just a note on that, I added cthreads as first in the unit
that defines my TThread descendant and works!

-Marco

2008/2/1, Vincent Snijders [EMAIL PROTECTED]:
 Marco Alvarado schreef:
  I have this class that inherits TThread. I compile and execute
  successfully an application that instantiates it with Delphi and
  Lazarus, on Windows. But when I execute the same Lazarus project in
  Ubuntu, I get the following error dialog:
 
  Project raised exception class 'RunError(232)'.
 
  When I click [OK] i get another dialog:
 
  Execution paused
  Address: $08067027
  Procedure: SYSTEM_NOTHREADERROR
  File:
 
 

 See FAQ:
 http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232

 Vincent

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives