Antonio Sanguigni schreef:
A component should add -dUseCThread to its usage options. Please update
the FAQ at
http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232
<http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232>
Reading Readme-lazarus notes I found this:
-----------
to use the Package in Linux you must add cthreads unit to
main lazarus unit lazarus.pp
like:
uses
{$ifdef MemCheck}
MemCheck
{$endif}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
{$ifdef Linux}
,cthreads
{$endif}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
.......
Vincent, how can I read about -dUseCThread for packages ?
Documentation is scarce, therefore I asked you to add it to the wiki.
If you create a new project, you see in the main project file (.lpr-file):
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Now open the package file (.lpk) of ACS. Click on the Options button. On
the first tab (usage), there is a text box at the button. Add the
following text:
-dUseCThreads
Now if you compile your an application which uses this package,
-dUseCThreads is added to the command line parameters of the compiler.
Therefore, the unit cthreads is used, if you are compiling for any unix,
in particalur linux.
Please, try this out and confirm it is working. If so, add it to the wiki:
1. in the FAQ
2. http://wiki.lazarus.freepascal.org/Lazarus_Packages
Hope this helps.
Vincent
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives