Delay usage help please

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Delay usage help please

Kirk W. Fraser
I'm using the free version of Dolphin and have some code which calls .dll's
which work on outside processes.  To test, I have have a method with several
Delay statements such as:

Delay forSeconds: 120.

My understanding is this should stop the processing of the method at that
point for 2 minutes, which is more than enough time to conclude the external
processes.  Then I'm guessing the method should continue normally until the
next Delay.  But it seems to ignore the delay statements and processes along
at its own timing, resulting in often sending correct messages to the wrong
external programs.

Is my useage wrong -- if so please correct me.  Or is there a bug?  Of
course if I addressed only one external program there would be less problem
but I want to lash together external TV and FTP applications to make my own
webcam.

Thank you.


Reply | Threaded
Open this post in threaded view
|

Re: Delay usage help please

Blair McGlashan
"Kirk W. Fraser" <[hidden email]> wrote in message
news:L7488.122$[hidden email]...
> I'm using the free version of Dolphin and have some code which calls
.dll's
> which work on outside processes.  To test, I have have a method with
several

> Delay statements such as:
>
> Delay forSeconds: 120.
>
> My understanding is this should stop the processing of the method at that
> point for 2 minutes, ....
> But it seems to ignore the delay statements and processes along
> at its own timing...
>
> Is my useage wrong -- if so please correct me.

You need to send #wait to the newly created Delay object, e.g.

    (Delay forSeconds: 120) wait.

Regards

Blair


Reply | Threaded
Open this post in threaded view
|

Re: Delay usage help please

Kirk W. Fraser
Thanks a lot Blair.

Sorry for the double post -- for some reason my post doesn't show up to my
newsreader.

Kirk


"Blair McGlashan" <[hidden email]> wrote in message
news:a3r935$1a7mum$[hidden email]...
"Kirk W. Fraser" <[hidden email]> wrote in message
news:L7488.122$[hidden email]...
> I'm using the free version of Dolphin and have some code which calls
.dll's
> which work on outside processes.  To test, I have have a method with
several

> Delay statements such as:
>
> Delay forSeconds: 120.
>
> My understanding is this should stop the processing of the method at that
> point for 2 minutes, ....
> But it seems to ignore the delay statements and processes along
> at its own timing...
>
> Is my useage wrong -- if so please correct me.

You need to send #wait to the newly created Delay object, e.g.

    (Delay forSeconds: 120) wait.

Regards

Blair