public override void Dispose() { if (mTimer != null) { mTimer.Dispose(); mTimer = null; } }
public override void Dispose() { if (mTimer != null) { mTimer.Dispose(); mTimer = null; } if (ObjectId != ObjectGuid.InvalidObjectGuid) { Simulator.DestroyObject(ObjectId); ObjectId = ObjectGuid.InvalidObjectGuid; } base.Dispose(); }
public override void Dispose() { if (mTimer != null) { mTimer.Dispose(); mTimer = null; } if (base.ObjectId.mValue != 0) { Simulator.DestroyObject(base.ObjectId); base.ObjectId = ObjectGuid.InvalidObjectGuid; } base.Dispose(); }
public override void Dispose() { try { if (mTimer != null) { mTimer.Dispose(); mTimer = null; } if (ObjectId != ObjectGuid.InvalidObjectGuid) { Simulator.DestroyObject(ObjectId); ObjectId = ObjectGuid.InvalidObjectGuid; } } catch (Exception e) { Common.Exception("Dispose", e); } base.Dispose(); }
public override void OnTerminate() { StopWatch.Dispose(); base.OnTerminate(); }