迪文科技论坛

 找回密码
 立即注册
搜索
查看: 180|回复: 7

【提问】hmi文件打开报错

[复制链接]

8

主题

36

回帖

163

积分

注册会员

Rank: 2

积分
163
发表于 2024-6-12 17:13:31 | 显示全部楼层 |阅读模式
程序刚刚还可以打开编辑,突然再打开不显示任何界面,然后等了一会突然报错


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at BizDraw.Controls.DummyTaskList.dgvPictureList_CellMouseDoubleClick(Object sender, DataGridViewCellMouseEventArgs e)
   at System.Windows.Forms.DataGridView.OnCellMouseDoubleClick(DataGridViewCellMouseEventArgs e)
   at System.Windows.Forms.DataGridView.OnMouseDoubleClick(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.DataGridView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9164 (WinRelRS6.050727-9100)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
DGUS_V7.646
    Assembly Version: 7.6.4.6
    Win32 Version: 7.6.4.6
    CodeBase: file:///E:/Desktop/串口屏资料/DGUS_V7646/DGUS_V7.646.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9136 (WinRelRS6.050727-9100)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9147 (WinRelRS6.050727-9100)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9136 (WinRelRS6.050727-9100)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DwinTerminal
    Assembly Version: 7.3.6.0
    Win32 Version: 7.3.6.0
    CodeBase: file:///E:/Desktop/串口屏资料/DGUS_V7646/DwinTerminal.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9153 (WinRelRS6.050727-9100)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9136 (WinRelRS6.050727-9100)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
DWINUI
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.0.0
    CodeBase: file:///E:/Desktop/串口屏资料/DGUS_V7646/DWINUI.DLL
----------------------------------------
System.Windows.Forms.resources
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9136 (WinRelRS6.050727-9100)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
mscorlib.resources
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9164 (WinRelRS6.050727-9100)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0

主题

586

回帖

2683

积分

金牌会员

Rank: 6Rank: 6

积分
2683
发表于 2024-6-12 18:46:53 | 显示全部楼层
本帖最后由 Carla熊 于 2024-6-12 18:53 编辑

您可以用附件的软件重新新建一个工程,然后把旧工程导入过来。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

8

主题

36

回帖

163

积分

注册会员

Rank: 2

积分
163
 楼主| 发表于 2024-6-13 09:44:28 | 显示全部楼层
Carla熊 发表于 2024-6-12 18:46
您可以用附件的软件重新新建一个工程,然后把旧工程导入过来。

版本低了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0

主题

415

回帖

6719

积分

论坛元老

Rank: 8Rank: 8

积分
6719
发表于 2024-6-13 09:53:29 | 显示全部楼层
本帖最后由 Yangjc1030 于 2024-6-13 09:54 编辑

您好,您要记事本打开工程里面的HMI文件,将646改成645就可以用软件打开了。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
我不在我不在
回复

使用道具 举报

8

主题

36

回帖

163

积分

注册会员

Rank: 2

积分
163
 楼主| 发表于 2024-6-13 10:01:59 | 显示全部楼层
Yangjc1030 发表于 2024-6-13 09:53
您好,您要记事本打开工程里面的HMI文件,将646改成645就可以用软件打开了。 ...

打是打开了,但是还是不显示任何界面
回复

使用道具 举报

0

主题

318

回帖

4148

积分

论坛元老

Rank: 8Rank: 8

积分
4148
发表于 2024-6-13 10:08:28 | 显示全部楼层
q594054294 发表于 2024-6-13 10:01
打是打开了,但是还是不显示任何界面

您好,左侧点击+号添加图片进来,然后文件-导入-选择工程下面的DWIN_SET文件夹,点确定可以还原
回复

使用道具 举报

8

主题

36

回帖

163

积分

注册会员

Rank: 2

积分
163
 楼主| 发表于 2024-6-13 10:09:30 | 显示全部楼层
dw涂涂 发表于 2024-6-13 10:08
您好,左侧点击+号添加图片进来,然后文件-导入-选择工程下面的DWIN_SET文件夹,点确定可以还原 ...

好的,搞定了,之前打不开是因为啥呢,后面好避免一下
回复

使用道具 举报

0

主题

836

回帖

5974

积分

论坛元老

Rank: 8Rank: 8

积分
5974
发表于 2024-6-13 11:58:09 | 显示全部楼层
考虑是不是打开软件和生成文件的软件版本不一致,或者是之前断电,没有及时保存
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|迪文科技论坛 ( 京ICP备05033781号-1 )

GMT+8, 2025-4-19 09:14 , Processed in 0.028282 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表