-
Notifications
You must be signed in to change notification settings - Fork 262
截屏内存无限制上涨的问题 #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
GC垃圾回收器会自动进行内存管理,并在需要时释放不再使用的对象。 |
并没有回收啊,内存蹭蹭上涨 |
正在解决中。 |
示例代码: private void ButtonExt_Click(object sender, RoutedEventArgs e)
{
var screenCaptureExt = new ScreenCaptureExt();
screenCaptureExt.SnapCanceled += ScreenCaptureExt_SnapCanceled;
screenCaptureExt.SnapCompleted += ScreenCaptureExt_SnapCompleted;
}
private void ScreenCaptureExt_SnapCompleted(System.Windows.Media.Imaging.BitmapSource bitmap)
{
}
private void ScreenCaptureExt_SnapCanceled()
{
Message.Push($"{DateTime.Now} 取消截图",MessageBoxImage.Information);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
执行截屏后内存没有自动释放,请解决一下吧谢谢
The text was updated successfully, but these errors were encountered: