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


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:


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:

asked on Stack Overflow Jan 25, 2020 by Ahmed Suror • edited Jan 25, 2020 by Ahmed Suror

1 Answer


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