Compiling IDE with multithreading included lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- wimpie · 2010-03-30 14:09 Hi all I am writing a visual component that uses threads in its constructor. When I try to place the component on a form I get the debug message "This binary has no thread support compiled in. Recompile the application with a thread-driver in the program uses clause....." My guess is that the 'application' is the Lazarus IDE. So how do I compile the IDE with threading included? A secondary question: This component worked completely until this morning. I recompiled a newer IDE in the meantime but I don't recall ever having added or removed anything thread related when compiling the IDE. Has something in this regard changed recently? Thanks for all help ---------------------------------------------------------------------- wimpie · 2010-03-30 14:33 I had another idea...the thread is only required at runtime, so is it possible for a component to know whether it is in design mode or run mode? ---------------------------------------------------------------------- Wodzu · 2010-03-30 18:03 Yes, you must check if ComponentState is in csDesigning mode. ---------------------------------------------------------------------- wimpie · 2010-03-30 20:58 Thanks, I will try that ---------------------------------------------------------------------- Ocye · 2010-03-31 08:36 You probably forgot to add cthreads to your project: http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial# Units_needed_for_a_multi-threaded_application