<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<title></title>
</head>
<body>
<p style="margin: 0px;"><span> </span></p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
Graeme Geldenhuys <graemeg.lists@gmail.com> hat am 27. Juni 2011 um 17:02 geschrieben:<br/>
<br/>
> On 06/27/2011 04:47 PM, Mattias Gaertner wrote:<br/>
> > The IDE reads the output in a loop using Application.ProcessMessages.<br/>
><br/>
> And that's probably the mistake - a bad design choice. But I guess that<br/>
> can be contributed to the fact that 10 years ago, SMP systems where not<br/>
> that popular as they are today.
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Yes, and it has some advantages. For example the code knows that no modal form is open and can therefore open windows and set focus.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
><br/>
> Why not have a "populate message window" thread, which reads the<br/>
> compiler output. This thread is launched at the same time as (or by) the<br/>
> "compile my project" thread.<br/>
><br/>
> My experimental IDE (which I use purely as a playground for ideas) use<br/>
> the method described above, and it works perfectly without pausing<br/>
> anything - modal dialogs or not.
</div><br/>
My rewrite uses threads, so yes, a ShowModal will not stop compilation.<br/>
If the main thread gets busy, the thread might still get paused, when it needs some information from the main thread.<br/>
<br/>
Mattias<br/>
<br/>
</body>
</html>