关闭帮助文件 (.chm) C# 时访问冲突 [英] Access violation when closing help file (.chm) C#

查看:40
本文介绍了关闭帮助文件 (.chm) C# 时访问冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 C# 应用程序并制作了一个 (.chm) 帮助文件来链接它,我使用以下语句打开帮助文件:

I'm developing a C# application and made a (.chm) help file to link it with, and I use the following statement to open help file:

Help.ShowHelp(this,HelpFileLocation);

并且帮助文件正确打开,但是当我关闭帮助文件窗口时,应用程序终止并且调试停止,并且在查看输出窗口时我看到:

And the help file opens correctly, but when I close the help file window, the application terminates and the debugging stops, and when looking at the output window I see this:

app.exe 已退出,代码为 -1073741819 (0xc0000005) '访问冲突'

app.exe has exited with code -1073741819 (0xc0000005) 'Access violation'

我尝试从多个表单调用该方法,但遇到了同样的问题.

I tried to call the method from more than one form and I'm getting the same problem.

这是描述问题的 GIF:https://archive.org/download/chm_20200125/chm.gif

this is a GIF describes the problem: https://archive.org/download/chm_20200125/chm.gif

推荐答案

也许这个帖子可以帮到你.在 C# 中打开 CHM(帮助文件)

Maybe this thread can help you. Open CHM (help file) in C#

访问冲突.. 也许应用程序没有以打开文件的权限执行?也许它必须以管理员权限执行?或者文件已经在另一个应用程序中打开了?

Access violation.. Maybe the app is not executed with the rights to open the file? Maybe it has to be executed with admin privileges? Or the file is opened in another application already?

这篇关于关闭帮助文件 (.chm) C# 时访问冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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