Page 1 of 1

Unhandled Exception

Posted: Wed Mar 30, 2016 10:54 am
by dave.wiard
Product, version and build: PowerShell Studio 2016, 5.2.118
32 or 64 bit version of product: 64
Operating system: Windows 8.1
32 or 64 bit OS: 64
PowerShell Version: 5.0.10586.117

Every time I load one of our PowerShell scripts I get an unhandled exception stating:
Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Unable to cast object of type ' ' to type '-. '.
Complete details of the exception are attached.

If I click Continue the script loads but things like code folding are not enabled. Syntax highlighting is still functional. I can provide the actual script via email if necessary.

Re: Unhandled Exception

Posted: Wed Mar 30, 2016 11:08 am
by DevinL
Could you please send the script to us at support@sapien.com so we can reproduce it on our end?

Re: Unhandled Exception

Posted: Fri Apr 08, 2016 12:11 pm
by dave.wiard
I am now back in town and I found build 119 was available so I just updated it on both my laptop and desktop. Neither machine is generating the same Unhandled Exception error now. I think we can close this as "unknown resolution" unless you'd still prefer to have the source code to check what caused it in build 118.

Re: Unhandled Exception

Posted: Mon Apr 11, 2016 11:34 am
by DevinL
In that case, if you don't mind sharing, it would be great if you could share the code so we can make sure that it doesn't appear in any future builds. You can send it to support@sapien.com or to me directly at devinl@sapien.com.