Home News DOC Class DL Others Rice
Class  >  timer  >  Release()
timer class : Release() method

Description

Releases unmanaged resources.

Syntax

instance.Release()

Arguments

None.

Return value

None.

Sample code

Suppose you have the following class definition.

1:

class handle

2:

open method void THandler(dictionary dic)

3:

... // timer handler code.

4:

endmethod

5:

endclass

Usage of the Release() method is as follows.

1:

handle h = new handle();

2:

timer tim = new timer(h,"THandler(dictionary)", 1000);

3:

tim.Start(); // The handler method will be called every time the set time elapses.

4:

...

5:

tim.Stop();

6:

tim.Release();

Notes

If an instance call this method, the instance back to the uninitialized state.

Links for reference

None.

Copyright © Rice All rights reserved.