Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IOTAThreadNotifier!

8 views
Skip to first unread message

Atmapuri

unread,
Jun 11, 2008, 6:34:41 AM6/11/08
to
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

Erik Berry

unread,
Jun 12, 2008, 3:11:08 AM6/12/08
to
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

0 new messages