exe连续点击时停止工作 [英] exe stopped working while clicking continuously

查看:65
本文介绍了exe连续点击时停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的申请已停止工作。我在连续单击EXE文件时遇到问题。问题签名是:

My application has stopped working. I am facing the issue while continuously clicking the EXE file. the problem signature is:

Problem signature:
  Problem Event Name:                        CLR20r3
  Problem Signature 01:                       merpda.exe
  Problem Signature 02:                       12.7.5.2
  Problem Signature 03:                       568a03e1
  Problem Signature 04:                       mscorlib
  Problem Signature 05:                       4.0.30319.17929
  Problem Signature 06:                       4ffa561c
  Problem Signature 07:                       43c4
  Problem Signature 08:                       1f4
  Problem Signature 09:                       System.IO.IOException
  OS Version:                                          6.1.7601.2.1.0.256.4
  Locale ID:                                             1033
  Additional Information 1:                  0a9e
  Additional Information 2:                  0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:                  0a9e
  Additional Information 4:                  0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

推荐答案

引用:

病人:当我自我击中头部时疼痛!

医生:好好停止打自己的头!

Patient: it hurts when I hit myself on the head!
Doctor: well stop hitting yourself on the head!



显然有些文件/流正在打开而你正在尝试再次打开它

1)如果你正在运行exe,那么尝试检查单个实例的运行情况,如果没有则退出: c# - 创建单实例应用程序的正确方法是什么? - 堆栈溢出 [ ^ ]

2)如果您在应用程序内部单击,则在单击处理程序中围绕代码锁定:


Obviously some file/stream is being opened and you are trying to open it again
1) If you are running the exe again when one is already running then try to check for single instance running and exit if not : c# - What is the correct way to create a single instance application? - Stack Overflow[^]
2) If you are clicking inside the application then put a lock around the code in the click handler :

private object _lock = new object();
private void button1_click(object sender, EventArgs e)
{
   lock(_lock)
   {
       // your normal code here
   }
} 


这篇关于exe连续点击时停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆