Product: PowerShell Studio 2023 (64 Bit)
Build: v5.8.219
OS: Windows 11 Enterprise (64 Bit)
Build:
I have been getting random "Object reference not set to an instance of an object." when running my code. Occasionally I will get this error when I load my projects and I will get an error dump. If I get that again I will attach it.
My colleague is on a slightly older version and he does not get these errors.
When I get the errors I just close Powershell Studio, start it back up, load the project and continue on from where I was.
I also noticed that when I get these errors sometimes it is a result of me trying to load files in the project. The file list will have most of my project files with question marks next to them yet I can still open them. But, sometimes I can build and run the project.
Object reference not set to an instance of an object.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
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 LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Object reference not set to an instance of an object.
[2023.04.04 - 14:51:18] Unhandled Exception:
Object reference not set to an instance of an object.
at PowerShellStudio.MainFormDX.(String , Boolean )
at ..()
at System.Windows.Forms.ToolStrip.OnItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStripDropDown.OnItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStrip.HandleItemClick(ToolStripItem dismissingItem)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--------------------------------------------------
Object reference not set to an instance of an object.
at PowerShellStudio.MainFormDX.(String , Boolean )
at ..()
at System.Windows.Forms.ToolStrip.OnItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStripDropDown.OnItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStrip.HandleItemClick(ToolStripItem dismissingItem)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--------------------------------------------------
Re: Object reference not set to an instance of an object.
We are looking into this and we get back to you soon.
Just to clarify, the error happens when you are opening files from the project panel? Can you provide a screenshot of the files with question marks?
Just to clarify, the error happens when you are opening files from the project panel? Can you provide a screenshot of the files with question marks?
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Object reference not set to an instance of an object.
That error occurs when I am opening from the panel sometimes. Other times it is when I am running code. Other times it is when I am debugging code.
I will post a screenshot if I can get the panel to show the question marks again.
I will post a screenshot if I can get the panel to show the question marks again.
Re: Object reference not set to an instance of an object.
Can you please upload your entire Errorlog.txt file from here:
C:\Users\[User]\AppData\Roaming\SAPIEN\PowerShell Studio
You can upload it here:
https://www.sapien.com/support/upload
Are your projects local or on a network?
Was this happening prior to this build for you?
C:\Users\[User]\AppData\Roaming\SAPIEN\PowerShell Studio
You can upload it here:
https://www.sapien.com/support/upload
Are your projects local or on a network?
Was this happening prior to this build for you?
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Object reference not set to an instance of an object.
I have uploaded my ErrorLog.
My code is on a network share. This problem was not present in previous builds.
My code is on a network share. This problem was not present in previous builds.
Re: Object reference not set to an instance of an object.
Please try service build 5.8.220 and let me know if you are still experiencing issues.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Object reference not set to an instance of an object.
The problem persists
[2023.04.07 - 10:21:10] Unhandled Exception:
Object reference not set to an instance of an object.
at PowerShellStudio.MainFormDX.(String , Boolean )
at ..(Object , MouseEventArgs )
at System.Windows.Forms.Control.OnMouseDoubleClick(MouseEventArgs e)
at DevExpress.XtraEditors.Container.EditorContainer.OnDoubleClick(EventArgs e)
at DevExpress.XtraTreeList.TreeList.OnDoubleClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m)
at DevExpress.XtraTreeList.TreeList.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--------------------------------------------------
[2023.04.07 - 10:21:10] Unhandled Exception:
Object reference not set to an instance of an object.
at PowerShellStudio.MainFormDX.(String , Boolean )
at ..(Object , MouseEventArgs )
at System.Windows.Forms.Control.OnMouseDoubleClick(MouseEventArgs e)
at DevExpress.XtraEditors.Container.EditorContainer.OnDoubleClick(EventArgs e)
at DevExpress.XtraTreeList.TreeList.OnDoubleClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m)
at DevExpress.XtraTreeList.TreeList.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--------------------------------------------------
Re: Object reference not set to an instance of an object.
What were you doing when you received this error?
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.