<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_extra"><div class="gmail_quote">2014-09-19 18:23 GMT+08:00 Michael Schnell <span dir="ltr"><<a href="mailto:mschnell@lumino.de" target="_blank">mschnell@lumino.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <div>On 09/18/2014 10:32 AM, Xiangrong Fang
      wrote:</div></span><span class=""><br></span>Unfortunately I do not get this working. When I instantiate TEvents
    instead of TCriticalSections (and don't do much with same)  the GUI
    freezes. In fact I do this in the "OnCreate" Event of the main Form
    and (not always but mostly) no child components are shown (but the
    close button [x] of the form still works.<br></div></blockquote><div><br></div><div class="gmail_default" style="font-family:'courier new',monospace">As far as I tried, you cannot use RTLEventWaitFor in main thread, otherwise the gui will freeze. Don't know what you did...</div></div></div></div>