hiRegTimer() - unusual behavior!

M

Manju Arasaiah

Guest
Hi,

We have hiRegTimer("MyFunc()" 1) in our .cdsinit

Sometimes it doesn't completely runs MyFunc() but sometimes it does!
I mean MyFunc() is 30 line function. My CDS.log shows sometimes I have
executed upto 20th line of MyFunc().

The reason I am using hiRegTimer() is to delay the execution of
MyFunc() while I want the system to continue its normal execution.

Anyone has used hiRegTimer() successfully?

thanks, Manju
 
Can you try the following simple function and see if you observe the
expected results,
procedure(hello()
println("hello123")
)
procedure(CCS_hello()
hiRegTimer("hello() CCS_hello()" 50)
)

I have used hiRegTimer and have not experienced issues in
straightforward applications..can you duplicate the 20th line
execution repeatedly?
Could be something to do with the function( does it involve any human
interface?)
Also, try increasing the time from 1 to say, 50. The number is
actually 1/10th of a second, and 0.1s might not be enough time for
your function if you perform complex data processing in it?

Partha

manju@intersil.com (Manju Arasaiah) wrote in message news:<5070f848.0404291258.6b80f60@posting.google.com>...
Hi,

We have hiRegTimer("MyFunc()" 1) in our .cdsinit

Sometimes it doesn't completely runs MyFunc() but sometimes it does!
I mean MyFunc() is 30 line function. My CDS.log shows sometimes I have
executed upto 20th line of MyFunc().

The reason I am using hiRegTimer() is to delay the execution of
MyFunc() while I want the system to continue its normal execution.

Anyone has used hiRegTimer() successfully?

thanks, Manju
 
Thanks for your i/p Partha.

BTW, I think I found why it was executing the function incompletely.
Whenever it encounters any error in the callback, it doesn't report it
and just stops at that point. I found that separetely running the
callback.

Is there a way I can get the error/warning reported when it runs thru
hiRegTimer()?

thanks, Manju

cadeguy@yahoo.com (Partha) wrote in message news:<7f58031f.0404291817.32a9fd0@posting.google.com>...
Can you try the following simple function and see if you observe the
expected results,
procedure(hello()
println("hello123")
)
procedure(CCS_hello()
hiRegTimer("hello() CCS_hello()" 50)
)

I have used hiRegTimer and have not experienced issues in
straightforward applications..can you duplicate the 20th line
execution repeatedly?
Could be something to do with the function( does it involve any human
interface?)
Also, try increasing the time from 1 to say, 50. The number is
actually 1/10th of a second, and 0.1s might not be enough time for
your function if you perform complex data processing in it?

Partha

manju@intersil.com (Manju Arasaiah) wrote in message news:<5070f848.0404291258.6b80f60@posting.google.com>...
Hi,

We have hiRegTimer("MyFunc()" 1) in our .cdsinit

Sometimes it doesn't completely runs MyFunc() but sometimes it does!
I mean MyFunc() is 30 line function. My CDS.log shows sometimes I have
executed upto 20th line of MyFunc().

The reason I am using hiRegTimer() is to delay the execution of
MyFunc() while I want the system to continue its normal execution.

Anyone has used hiRegTimer() successfully?

thanks, Manju
 
Thanks for your i/p Partha.

BTW, I think I found why it was executing the function incompletely.
Whenever it encounters any error in the callback, it doesn't report it
and just stops at that point. I found that separetely running the
callback.

Is there a way I can get the error/warning reported when it runs thru
hiRegTimer()?

thanks, Manju

cadeguy@yahoo.com (Partha) wrote in message news:<7f58031f.0404291817.32a9fd0@posting.google.com>...
Can you try the following simple function and see if you observe the
expected results,
procedure(hello()
println("hello123")
)
procedure(CCS_hello()
hiRegTimer("hello() CCS_hello()" 50)
)

I have used hiRegTimer and have not experienced issues in
straightforward applications..can you duplicate the 20th line
execution repeatedly?
Could be something to do with the function( does it involve any human
interface?)
Also, try increasing the time from 1 to say, 50. The number is
actually 1/10th of a second, and 0.1s might not be enough time for
your function if you perform complex data processing in it?

Partha

manju@intersil.com (Manju Arasaiah) wrote in message news:<5070f848.0404291258.6b80f60@posting.google.com>...
Hi,

We have hiRegTimer("MyFunc()" 1) in our .cdsinit

Sometimes it doesn't completely runs MyFunc() but sometimes it does!
I mean MyFunc() is 30 line function. My CDS.log shows sometimes I have
executed upto 20th line of MyFunc().

The reason I am using hiRegTimer() is to delay the execution of
MyFunc() while I want the system to continue its normal execution.

Anyone has used hiRegTimer() successfully?

thanks, Manju
 

Welcome to EDABoard.com

Sponsor

Back
Top