修改程式0118
This commit is contained in:
parent
ed1681a2e4
commit
420325b4e5
1
Camera_connect/Main.Designer.cs
generated
1
Camera_connect/Main.Designer.cs
generated
@ -162,6 +162,7 @@
|
||||
Controls.Add(Bt_connect);
|
||||
Name = "Main";
|
||||
Text = "Form1";
|
||||
FormClosed += Form1_FormClosed;
|
||||
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
|
||||
ResumeLayout(false);
|
||||
PerformLayout();
|
||||
|
@ -308,5 +308,12 @@ namespace Camera_connect
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
|
||||
Basler.DestroyCamera();
|
||||
pictureBox1.Image?.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user