<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/18/2014 10:32 AM, Xiangrong Fang
wrote:<br>
</div>
<blockquote
cite="mid:CAP93jB3gHocRpmom_1-M5eTmsFF+B7jcJTGpX_h8YSsw4gc1Tw@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra">
<div class="gmail_quote">
<div>
<div class="gmail_default" style="font-family:'courier
new',monospace;display:inline">I don't quite understand
the logic or difference between critical section </div>
<div class="gmail_default" style="font-family:'courier
new',monospace;display:inline">and events.<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
Following your suggestion to use events (here meaning semahores)
instead of critical sections (here meaning mutexes) I tried to
modify my code to use TEvent (as same is Delphi compatible - or at
least it does exist in Delphi as well). <br>
<br>
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>
<br>
I don't understand wow this can happen (svn versions of Lazarus and
fpc).<br>
<br>
-Michael<br>
</body>
</html>