32 or 64 bit version of product: 64-bit
Operating system: Windows 10
32 or 64 bit OS: 64-bit
Powershell Studio 2018 freezes when trying to open a specific script or project containing that script. This was working fine for a while. Eventually, it would open the project, but would freeze when trying to open the specific script. Now, it freezes when I even try to open the project that the script is part of. If I make a copy of script and try to open it, it still locks up. Note that during this whole time, no changes have been made to the script.
All of this leads me to believe that there is some cached information, or something, that is causing the application to freeze. I've tried rebuilding the cache prior to loading the script, and that does not work. I've also tried a repair install of the software, which had no effect. I've restarted the computer numerous times, to no effect.
Are there temporary files somewhere that I can delete? Is there something I can do in the application to get it back to the working state that it was in a few weeks ago?
Thanks in advance!
EDIT: After a very long time, an error message popped up. It is "Unhandled Exception: Array dimensions exceeded supported range." Hopefully this may provide insight as to what is happening. Thanks again!
EDIT 2: Upon dismissing the error above, the script displays, and there is a line highlighted in the syntax checker. The line is:
Code: Select all
Set-Variable -Name "knownFilePath" -Value ([System.IO.Path]::Combine("\\", $procHost, $procShare, $procPath, "conf", "$($configFileObject.BaseName).known.csv")) -Description "File string for the known files path" -Scope Global
EDIT 3: Below is the message from ErrorLog.txt
--------------------------------------------------
Code: Select all
[2018.09.04 - 10:58:46] Unhandled Exception:
Array dimensions exceeded supported range.
at System.Collections.Generic.List`1.set_Capacity(Int32 value)
at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
at System.Collections.Generic.List`1.Add(T item)
at ..(Int32& , List`1& , Boolean )
at ..(Int32& )
at ..(IToken , Int32& )
at ..()
at ..()
at ..()
at ..OnActivated(EventArgs e)
at System.Windows.Forms.Form.set_Active(Boolean value)
at System.Windows.Forms.Form.ActivateMdiChildInternal(Form form)
at System.Windows.Forms.Form.WmMdiActivate(Message& m)
at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--------------------------------------------------