Sleep command

Bastiaan Olij bastiaan at
Wed Mar 4 18:35:55 EST 2015

Hey Ben,

I'm doing something like that as well, it works great.

Again my problem here is simply that I'm dealing with a legacy process
and getting it to a point where I can cleanly exit the method and pick
up where I left off when the process has finished isn't an option. It
would have my preference, but its just too much to redo.

Having a "Omnis go to sleep for 500ms, check if process is finished,
loop if not" to insert into the existing code would be a minutes worth
of work instead of hours of rewriting.



On 5/03/2015 8:52 am, ben.butler at wrote:
> Why not end method after starting a timer object passing $cinst.$ref as a paramater in setting it up and have another call back method the timer calls when it evaluates the true or false condition? 
> On 4 March 2015 21:46:18 GMT+00:00, Bastiaan Olij <bastiaan at> wrote:
>> Hi JM,
>> Thats what I started with but it has the side effect that Omnis starts
>> hogging the processor as its madly executing the loop....
>> Cheers,
>> Bas
>> On 4/03/2015 6:40 pm, Jean Marc Azerad wrote:
>>> Hi Bas
>>> This is what I do:
>>> Calculate iCT as #CT+600
>>> While #CT<iCT
>>> 	; do nothing
>>> End While
>>> Easy to fine tune
>>> JM
>> _____________________________________________________________
>> Manage your list subscriptions at

Kindest Regards,

Bastiaan Olij
e-mail: bastiaan at
Skype: Mux213

More information about the omnisdev-en mailing list