timer クラス : Release()メソッド
説明
アンマネージリソースを解放します。
構文
instance.Release()
引数
無し。
返り値
無し。
サンプルコード
次のクラス定義があるとします。
| 1: | class handle |
| 2: | open method void THandler(dictionary dic) |
| 3: | ... // timer handler code. |
| 4: | endmethod |
| 5: | endclass |
Release() メソッドの使い方は次のとおりです。
| 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(); |
注意
呼び出し元インスタンスは、初期化されていない状態に戻ります。
参照リンク
無し。


