Hi all,
I tried to convert some script code from ps1 to psf , when "break" or "exit" is used in code which will cause system error
is there any workaround to stop the code running?
thanks
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Management.Automation.ExitException: System error.
"break" "exit" casue gui error -Unhandled Exception
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.
"break" "exit" casue gui error -Unhandled Exception
- Attachments
-
- 2021-09-03_115207.jpg (76.83 KiB) Viewed 2870 times
Re: "break" "exit" casue gui error -Unhandled Exception
Sorry but the information posted does not give us enough to understand what you are trying to ask.
You cannot debug or run a PSF. Under PSS 'Run" or "Debug" generates a PS1 and executes it in a separate host. YOu cannot debug through PSS with an external JIT debugger without creating conflicts. Why would you want to run an external debugger?
The message is from teh Windows system and is notifying you that the code run has thrown an exception that you haven't handled.
Trying to exit a form when another event is in progresss will throw an exception. Do not use "break" or "exit" in a form except when "break" is in a loop structure.
To stop a form just "Close" it and the form will end as long as it is not in a long loop in some event.
You cannot debug or run a PSF. Under PSS 'Run" or "Debug" generates a PS1 and executes it in a separate host. YOu cannot debug through PSS with an external JIT debugger without creating conflicts. Why would you want to run an external debugger?
The message is from teh Windows system and is notifying you that the code run has thrown an exception that you haven't handled.
Trying to exit a form when another event is in progresss will throw an exception. Do not use "break" or "exit" in a form except when "break" is in a loop structure.
To stop a form just "Close" it and the form will end as long as it is not in a long loop in some event.