public HomeIA() { // Formulaire InitializeComponent(); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(Form1_close); // Debugger g_Logger = new Logger(); g_Logger.attachToRTB(RTB_log); g_Logger.levelDebug = 0; Logger.GlobalLogger = g_Logger; // IA _IntelArt = new IntelArt(); getListePortSerie(ctlListePorts); }
void Form1_close(object e, FormClosingEventArgs arg) { _IntelArt.Dispose(); _IntelArt = null; //g_Serial.StopListenSerial(); }