Hi all,
I'm wondering if there is any way to totally suppress any Unhandled exception windows error except putting all the code in a try-catch statement.
I have a project with lots of lines and it work properly in any case, but all the times the program run, the followed alert appear. I really would like to avoid it.
--> screenshot link
How can I do?
Thanks in advance,
Stop Unhandled Exception Alert
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Stop Unhandled Exception Alert
What code is causing the exception? This exception looks more like a system error than a PowerShell exception. THe Net Framework is throwing an exception that cannot be trapped by PowerShell.
Re: Stop Unhandled Exception Alert
I saw there was an 'exit' inside a function. This is the cause, I suppose I cannot use exit inside a form. Do you think I can use jobs to let that function run in background, so when the exit will be executed it will just terminate the job?