- Edited by bcehr Tuesday, July 28, 2015 3:17 PM
Here is a link with others with this same issue:
http://stackoverflow.com/questions/30808084/using-windows-forms-locks-up-powershell-ise-minutes-after-script-has-terminated
- Edited by bcehr Monday, August 31, 2015 1:49 PM
Jrv, thanks for the reply. That was my original thought as well, but I literally went through the code and did a manual Remove-Variable for EVERY object in the code to cleanup and terminate everything and the ISE still freezes. Running Get-Variable | Remove-Variable after script execution also still results in the ISE locking up after a short time. I have also read other users having this same problem with even a simple winform application with a simple form with one control on it. Wondering if possibly could be a bug in the ISE in relation to winforms? Or there something else in my code I could be missing?
- Edited by bcehr Monday, August 31, 2015 6:41 PM
- Edited by bcehr 19 hours 21 minutes ago
Hi,
This isn't exactly a solution to your actual issue, but have you tried alternate editors as a bandaid fix? I don't really do anything with forms, so I've had no issues with the ISE, but there are people out there who really seem to love PowerGUI.
Or PowerShell Studio, if you're willing to pony up for it.
MS support will always look at the issue when you pay for support.
I will stress that this is not likely a bug. Without your script it is impossible for anyone to even guess at what you are doing.
There are specific differences between the ISE and the CLI. ISE is a GUI based editor and debugger. It is not a target production execution environment.
- Edited by bcehr Thursday, September 03, 2015 11:50 AM