Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You should only access VCL objects from main VCL thread. </p> <p>Some reading methods (property getters) do work from other threads in practice - but you have to prove it in advance reading VCL sources for the specific Delphi build. Or not use it.</p> <p>PS: Synchronize method runs given procedure in main VCL thread, pausing the caller thread, which may lead to a deadlock, if main thread was also blocked.</p> <p>Read more: (actually making this answer to list some links)</p> <ul> <li><a href="http://www.michael-puff.de/Programmierung/Delphi/Code-Snippets/VCLThreadDemo.shtml" rel="nofollow noreferrer">http://www.michael-puff.de/Programmierung/Delphi/Code-Snippets/VCLThreadDemo.shtml</a></li> <li><a href="http://www.drbob42.com/uk-bug/hood-04.htm" rel="nofollow noreferrer">http://www.drbob42.com/uk-bug/hood-04.htm</a></li> <li><a href="http://delphi.about.com/od/kbthread/a/thread-gui.htm" rel="nofollow noreferrer">http://delphi.about.com/od/kbthread/a/thread-gui.htm</a></li> <li><a href="https://stackoverflow.com/questions/1806339/">Is it better to use TThread&#39;s &quot;Synchronize&quot; or use Window Messages for IPC between main and child thread?</a></li> <li><a href="https://stackoverflow.com/questions/3331622/">Delphi 6 : breakpoint triggered on non-VCL thread stops main thread repaints</a></li> <li><a href="http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/devwin32/win32_mthreadusemainthread_xml.html" rel="nofollow noreferrer">http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/devwin32/win32_mthreadusemainthread_xml.html</a></li> <li><a href="https://stackoverflow.com/questions/16780581/">Simplifying VCL thread wrapper code</a></li> <li><a href="https://stackoverflow.com/questions/6739595/">Update a VCL component from CreateAnonymousThread</a></li> <li><a href="http://thaddy.co.uk/threads/" rel="nofollow noreferrer">http://thaddy.co.uk/threads/</a> - the mirror of "Multithreading - The Delphi Way" by Martin Harvey</li> <li><a href="http://otl.17slon.com/" rel="nofollow noreferrer">http://otl.17slon.com/</a> - new Delphi approach to threading</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload