Article View: borland.public.delphi.opentoolsapi
Article #68Re: IOTAThreadNotifier!
From: Erik Berry
Date: Thu, 12 Jun 2008 07:11
Date: Thu, 12 Jun 2008 07:11
14 lines
1652 bytes
1652 bytes
Atmapuri wrote: > Does the callback depend on Windows Messages or is this a call from > another thread? I have tried waiting for the > thread to complete by looping a for a loop with a Sleep command, but Last time I tested, I think I just looped calling Application.ProcessMessages and waited for TOTAEvaluateResult.EvaluateCompleted to change, but that was around the Delphi 6/7 era. I don't remember it taking any longer than the watch/evaluate dialogs take to evaluate variables. I don't remember testing Sleep. I think the IDE's evaluation method call has to be done in the context of another thread sometimes, which is the reason erDeferred exists - so it can swap context and return the result to you. Erik
Technical Details
Message-ID:
<4850cc11$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<484faa4d@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10c3df,79654b4c8e0796bd X-Google-Attributes: gid10c3df,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 12 Jun 2008 02:11:08 -0500 From: Erik Berry <eb@techie.zzzcom> User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: borland.public.delphi.opentoolsapi Subject: Re: IOTAThreadNotifier! References: <484faa4d@newsgroups.borland.com> In-Reply-To: <484faa4d@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.152.214.119 Message-ID: <4850cc11$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1213254673 69.152.214.119 (12 Jun 2008 00:11:13 -0700) Lines: 14 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail