Skip to content
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

提示说找不到路径,详细的报错信息如下所示 #16

Open
codevvvv9 opened this issue Mar 23, 2018 · 1 comment
Open

提示说找不到路径,详细的报错信息如下所示 #16

codevvvv9 opened this issue Mar 23, 2018 · 1 comment

Comments

@codevvvv9
Copy link

未处理System.IO.DirectoryNotFoundException
  HResult=-2147024893
  Message=未能找到路径“E:\ChromeDownloads\EasyPR-DLL-CSharp-master\EasyPR-DLL-CSharp-master\test_interface\bin\x64\Debug\EasyPR-DLL-CSharp-master\resources\image\interface\show_detect”的一部分。

上面是出错的位置,但是检查了路径没问题啊。

  Source=mscorlib
  StackTrace:
       在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       在 System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
       在 test_interface.SinglePic.打开ToolStripMenuItem_Click(Object sender, EventArgs e) 位置 e:\ChromeDownloads\EasyPR-DLL-CSharp-master\EasyPR-DLL-CSharp-master\test_interface\SinglePic.cs:行号 67
       在 System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       在 System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
       在 System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       在 System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       在 System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       在 System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
       在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       在 System.Windows.Forms.Control.WndProc(Message& m)
       在 System.Windows.Forms.ToolStrip.WndProc(Message& m)
       在 System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
       在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       在 test_interface.Program.Main() 位置 e:\ChromeDownloads\EasyPR-DLL-CSharp-master\EasyPR-DLL-CSharp-master\test_interface\Program.cs:行号 19
       在 System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       在 System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

上面是栈异常的所有详细代码

@codevvvv9
Copy link
Author

Directory.Delete(@"EasyPR-DLL-CSharp-master/resources/image/interface/show_detect", false);

问题就在这句代码上,@之后的路径不对。我在当前目录下没有找到这个问题所在,希望作者指导下,这个目录结构@zhang-can @zhang-can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant