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

0

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

c#
.net
access-violation
chm
asked on Stack Overflow Jan 25, 2020 by Ahmed Suror • edited Jan 25, 2020 by Ahmed Suror

1 Answer

0

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?

answered on Stack Overflow Jan 25, 2020 by Shendayan

User contributions licensed under CC BY-SA 3.0