I use an ActiveX control (qlickview ocx) on my form and it work well but sometimes (on close form OR reopen a document in the control) my application will be hang with this windows message:
Program stopped working...
Important Notes:
- I used try catch block everywhere in my methods
- The program does not enter into codes of the any catch blocks
- I used
UnhandledExceptionEventArgs
in the "Main Method" but this event is not executed when the error occurred - I used
ThreadExceptionEventArg
in the "Main Method" but this event is not executed when the error occurred - I don't know reason of the error (Perhaps because of a bug of the used OCX control)
- I don't want my end user see any message on this error occurred, just close the program