Concept Framework 2.0 documentation Contents | Index

win32.base.messages.CheckPoint

Name Version Deprecated
CheckPoint version 1.0 no

Prototype:
null-returned CheckPoint(number seconds)

Parameters:
seconds      the number of seconds to the next checkpoint

Description:
Sets a checkpoint to avoid infinite loops. Setting the seconds parameter to 0 will disable any existing checkpoint. This function is intended to offer some protection in the debug process of an application.

Example:
...
/* set a checkpoint to 30 seconds ... if the operation takes longer, the application will be forced to shutdown */
CheckPoint(30);
// infinite loop !
while (true); 
/* notices that we passed the checkpoint, and cancels the checkpoint ... this point is never hit ! */
CheckPoint(0);
...

Returns:
This function returns null.

Documented by Eduard Suica, generation time: Fri Jan 21 18:06:21 2011 GMT(c)2011 RadGs Software