问题
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