Access violation when closing help file (.chm) C#

谁说我不能喝 提交于 2021-01-29 13:23:11

问题


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 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.

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


回答1:


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?



来源:https://stackoverflow.com/questions/59909028/access-violation-when-closing-help-file-chm-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!