Sign in to follow this  
Followers 0
Creator

AdlibEnable/AdlibDisable question

3 posts in this topic

I am wondering, how the internals of adlibenable/adlibdisable work.

Is it an fire and forget mechanism or does adlib wait for the called function to return?

let me show what i mean:

AdlibEnable("CheckMessages", 300000)

function CheckMessages()

bla bla .... do a mailcheck routine

EndFunc

Every 5 mins the function will be triggered by Adlib.

question: if the function is triggered will adlib wait for the return before starting the 5 mins timer again? Or will Adlib fire the function (and forget) and start the timer right after the call??

Share this post


Link to post
Share on other sites



From the help file:

"The adlib function should be kept simple as it is executed often and during this time the main script is paused"

The rest of the program will wait until it is finished until it continues, and the time will restart at that time.


Infinity is a floorless room without walls or ceiling.Anyone who cannot cope with mathematics is not fully human. At best he is a tolerable subhuman who has learned to wear shoes, bathe, and not make messes in the house.

Share this post


Link to post
Share on other sites

From the help file:

"The adlib function should be kept simple as it is executed often and during this time the main script is paused"

The rest of the program will wait until it is finished until it continues, and the time will restart at that time.

well ... uhm...doh..shame shame

I stoppped reading that cause i thought it was the explanation of catching unforseen errors.....silly me

Thanx anywayz

Creator

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0