protected virtual void onDelete() { try { //まずはタイマーをとめる flgAlarm = 0; //フラグ0 timRefresh.Dispose(); //タイマーの破棄 timUpdate.Dispose(); //タイマーの破棄 //ボイスロイドスレッドの終了 lvr.Dispose(); lvr = null; //セーブをしておく if(os != null)os.setPreferenceData(); //おそうじ if (obr != null) obr.deleteAllTempFile(); //アクティビティの破棄 if (at != null) Invoke(new LpsDelegate.dlgVoidToVoid(at.dispose)); if (li != null) Invoke(new LpsDelegate.dlgVoidToVoid(li.Dispose)); if (at != null) Invoke(new LpsDelegate.dlgVoidToVoid(al.dispose)); if (ac != null) Invoke(new LpsDelegate.dlgVoidToVoid(ac.dispose)); if (ast != null) Invoke(new LpsDelegate.dlgVoidToVoid(ast.dispose)); //オブジェクトの破棄 os = null; oss = null; ossList = null; obl = null; olc = null; owf.Dispose(); owf = null; obr = null; //最後に自分自身の終了 if (!flgRestart) { flgEnd = true; Invoke(new LpsDelegate.dlgVoidToVoid(this.Close)); } else { Invoke(new LpsDelegate.dlgVoidToVoid(restert)); } } catch(Exception err) { LpsLogControllerCus.writingLog(this.GetType().Name, MethodBase.GetCurrentMethod().Name, err.ToString()); if (!flgRestart) { flgEnd = true; } else { } } }
protected void initVoiceRoid() { if (lvr != null) { lvr.Dispose(); } lvr = os.getSelectedVoiceRoid(); }