private void FrmMain_FormClosing(object sender, FormClosingEventArgs e) { // Finalizando a dll boleto.Dispose(); boleto = null; }