此主题相关图片如下:360截图20160304092919921.jpg

如上图,自定义主进程的项目运行关闭后主进程还在,这样因为在beforeopenproject中用了下面的代码禁止重复打开,项目就一直打不开了,必须手动去结束上次的进程才行。
beforeopenproject中的代码:
'控制一台电脑只能打开一个客户端运行!
Dim sucess As Boolean = False
mu = new System.Threading.Mutex(True, "dsdfhdfghf", sucess)
If not sucess Then
MessageBox.Show("程序已经在运行,不能重复打开!", "提示",MessageBoxButtons.Ok,MessageBoxIcon.Warning,0, Windows.forms.MessageBoxOptions.ServiceNotification)
e.Cancel = True
End If
'---第一次打开项目时先显示网络类型对话框
Dim t1 As New System.Threading.Thread(AddressOf beforeOpenProject)
t1.Start()
是不是因为上面红色代码导致的,还是其他 什么原因?
谢谢!