Recent

Author Topic: Compiling IDE with multithreading included  (Read 5638 times)

wimpie

  • New Member
  • *
  • Posts: 32
Compiling IDE with multithreading included
« on: March 30, 2010, 04:09:20 pm »
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

  • New Member
  • *
  • Posts: 32
Re: Compiling IDE with multithreading included
« Reply #1 on: March 30, 2010, 04:33:16 pm »
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

  • Full Member
  • ***
  • Posts: 171
Re: Compiling IDE with multithreading included
« Reply #2 on: March 30, 2010, 08:03:13 pm »
Yes, you must check if ComponentState is in csDesigning mode.

wimpie

  • New Member
  • *
  • Posts: 32
Re: Compiling IDE with multithreading included
« Reply #3 on: March 30, 2010, 10:58:07 pm »
Thanks, I will try that

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Lazarus 1.7 (SVN) FPC 3.0.0

 

TinyPortal © 2005-2018