<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 09/19/2014 02:48 PM, Xiangrong Fang
wrote:<br>
</div>
<blockquote
cite="mid:CAP93jB1bake7x+oDvOdN0EU50+dpZhmnvmMwkdWXtkY1KXOzcA@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra">
<div class="gmail_quote">
<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. <br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
Of course I did not do this. I used TEvent.Waitfor and I only used
it in the Execute function of the worker Threads . <br>
<br>
Supposedly the problem was that the Worker Threads I created already
ran in a loop while the GUI constructed the Form and for an unknown
reason the GUI Thread did not get enough time slices to ever get
done with it's work. <br>
<br>
Anyway, after correctly managing the worker Threads everything is
fine. <br>
<br>
I can post this version of the TThreadPool class here, if you might
want to try it. I'd be very interested in knowing if the project
works correctly on your (64 bit) systems. <br>
<br>
-Michael<br>
<br>
</body>
</html>