I use C# and Halcon to do image processing, now there is a problem that I halconwindow on some operation, users need to click the mouse operation, but this time the user without any operation will turn off the program, or just click the left mouse button and click the right mouse button. This time turn off the program, the program will wait for the closure. Debugging in vs debug, you will see the error caused by memory corruption. Now how to mask this error? Or let the user can not see the waiting for the closure of the interface.
Asked
Active
Viewed 91 times
-2
-
I used Halcon system parameters do_low_error and when the winform is closing all dispose. But the error has always been there – kenny.ni Jan 03 '17 at 15:57
-
1You don't mask memory corruption errors, you fix them – John Smith Jan 03 '17 at 15:57
-
Please provide code samples when asking for help. – Serg Chernata Jan 03 '17 at 15:59
-
thanks,later i provide my code – kenny.ni Jan 04 '17 at 16:34
1 Answers
0
Use a try catch block to catch the specific exception you are seeing. Doing nothing in the catch block will effectively hide it.

Glorfindel
- 21,988
- 13
- 81
- 109

Theo
- 885
- 6
- 16