Linux & indy lazarus / 1-Linux ---------------------------------------------------------------------- cd · 2010-03-10 01:04 do they work together? today i tried to move two the projects with indy to linux and failed one of them outputs an error RE211 at initialization stage the other runs but doesn't connect anywhere saying "Semaphore init failed (possibly too many concurrent threads)" both applications were created with lazarus and worked fine on windows i will certainly investigate it deeper myself, but maybe someone already knows what to do with this? ---------------------------------------------------------------------- shanbaum · 2010-03-25 15:35 You may have already found this, but for others looking in the thread... http://wiki.lazarus.freepascal.org/Lazarus_Faq#Lazarus_crashes_with_ru ntime_error_211_after_I_installed_a_component I hit roughly the same issue as you until ensuring that cthreads was the first in the uses list. ---------------------------------------------------------------------- cd · 2010-03-26 10:33 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}