🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.opentoolsapi
2 messages
2 total messages Started by Atmapuri Wed, 11 Jun 2008 10:34
IOTAThreadNotifier!
#67
Author: Atmapuri
Date: Wed, 11 Jun 2008 10:34
20 lines
1526 bytes
Hi!

I have passed an object supporting IOTAThreadNotifier to

IOTAThread.AddNotifier(..);

The I called IOTAThread.Evalute which returned erDeferred because
I had a function call in the expression, but the methods of the
IOTAThreadNotifier object passed to AddNotifier object
never trigger to signal that evalution has completed.

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 nothing happened. 

Is this a known issue?

Thanks!
Atmapuri
Re: IOTAThreadNotifier!
#68
Author: Erik Berry
Date: Thu, 12 Jun 2008 07:11
14 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads