Dyskusja:Lazarus problem z Semaphore init failed (possibly too many concurrent threads): Różnice pomiędzy wersjami

Z Podręcznik Administratora by OPZ SGU
Przejdź do nawigacji Przejdź do wyszukiwania
(Utworzył nową stronę „autor: shanbaum thank you actually i didn't find and answer yet, so this helped. for those who are interested in a quick decision here it is. if you create a new p...”)
 
Linia 1: Linia 1:
autor:
autor:


 
<pre>
shanbaum  
shanbaum  
thank you
thank you
Linia 19: Linia 19:
cthreads,
cthreads,
{$ENDIF}{$ENDIF}
{$ENDIF}{$ENDIF}
</pre>

Wersja z 02:22, 29 gru 2012

autor:

shanbaum 
thank you

actually i didn't find and answer yet, so this helped.

for those who are interested in a quick decision here it is.
if you create a new project there is a block of code in project1.lpr
Code: [Select]
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
so one has only to wipe out {$IFDEF UseCThreads} or define {$DEFINE UseCThreads}. i decided to modify it the second way
Code: [Select]
{$DEFINE UseCThreads}
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}