未能找到temp\select2.cur的一部分

环境

操作系统:win10 家庭普通版本 x64

账户类型:管理员

SuperMap:9D

打开自定义的应用程序时,会报错:未能找到路径"C:\Users\user\AppData\Local\Temp\Select2.cur"的一部分

************** 异常文本 **************

System.IO.DirectoryNotFoundException: 未能找到路径"C:\Users\user\AppData\Local\Temp\Select2.cur"的一部分。

在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

在 System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)

在 System.IO.File.WriteAllBytes(String path, Byte[] bytes)

在 SuperMap.UI.MapControl.Cursors.LoadActionCursor(String cursorName)

在 SuperMap.UI.MapControl.Cursors.get_Select2()

在 SuperMap.UI.MapControl.GetDefaultCursor()

在 SuperMap.UI.MapControl.SetActionCursor(Boolean wait)

在 SuperMap.UI.MapControl.DoMouseMove(MouseEventArgs e)

在 SuperMap.UI.MapControl.OnMouseMove(MouseEventArgs e)

在 System.Windows.Forms.Control.WmMouseMove(Message& m)

在 System.Windows.Forms.Control.WndProc(Message& m)

在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)

在 System.Windows.Forms.UserControl.WndProc(Message& m)

在 SuperMap.UI.MapControl.WndProc(Message& m)

在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

解决

这只是个例,怀疑是操作系统或操作系统+SuperMap问题;经过观察,基于超图的应用程序一启动就会自动删除系统的临时文件夹,非常诡异,是谁删除了temp文件夹,系统用户?应用程序?超图环境?其他软件?像这类问题非常不好确定。解决方式是新建一个管理员用户,可暂时解决这一报错。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值