New exception in build 151

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
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.
This topic is 5 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

New exception in build 151

Post by jvierra »

To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: Build 151
32 or 64 bit version of product: 64
Operating system: W10(1709)
32 or 64 bit OS: 64

As of build 151 th3 following code cause exception in both copies of PSS when pasted into new PS1 file and saved.

Code: Select all

$formMain_Load={
	#TODO: Initialize Form Controls here
}

$buttonExit_Click={
	#TODO: Place custom script here
	$formMain.Close()
}
$buttonFilteredData_Click = {
	Write-Host "Start filtered data load..."
	$data = Get-RDUserSession -CollectionName "Collection 1" -ConnectionBroker "broker1.test1.com" | 
        Select -Property Username, SessionState, CreateTime, DisconnectTime, IdleTime, CollectionName, HostServer
	$datagridviewResults.DataSource = ConvertTo-DataTable $data
	Write-Host "Finished filtered data load."
}
Exception is:
  1. [2018.04.27 - 15:53:26] Unhandled Exception:
  2. Object reference not set to an instance of an object.
  3.    at (Object )
  4.    at ..(String )
  5.    at €..(Object ,  )
  6.    at „..(String )
  7.    at ..(SyntaxEditor , EditorViewMouseEventArgs )
  8.    at ActiproSoftware.SyntaxEditor.SyntaxLanguage.#JYe(SyntaxEditor #bCb, EditorViewMouseEventArgs #yhb)
  9.    at ActiproSoftware.SyntaxEditor.SyntaxEditor.#t3e(EditorViewMouseEventArgs #yhb)
  10.    at ActiproSoftware.SyntaxEditor.EditorView.OnMouseHover(MouseEventArgs e)
  11.    at ActiproSoftware.WinUICore.UIElement.#gxe(MouseEventArgs #yhb)
  12.    at ActiproSoftware.WinUICore.UIControl.OnMouseHover(EventArgs e)
  13.    at System.Windows.Forms.Control.WndProc(Message& m)
  14.    at ActiproSoftware.SyntaxEditor.SyntaxEditor.WndProc(Message& m)
  15.    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  16. --------------------------------------------------
cody m

Re: New exceptionin build 151

Post by cody m »

I was able to reproduce this error, we will take a look at what is causing it and work on fixing it.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: New exception in build 151

Post by jvierra »

No hurry. It only happens on that file unlike how it used to fail on almost any file with certain last lines.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: New exception in build 151

Post by davidc »

This issue will be resolved in the next service release.
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: New exception in build 151

Post by davidc »

FYI, the exception occurs when you hover over an event variable in a ps1 file.
David
SAPIEN Technologies, Inc.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: New exception in build 151

Post by jvierra »

Thank you. I was starting to see that but hadn't taken time to track it. I knew it was "PS1" versus the event scriptblock.

Odd error???
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: New exception in build 151

Post by davidc »

Yes, it is local to ps1 files because it doesn't have a designer. We will try to release a patch as soon as possible.
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: New exception in build 151

Post by davidc »

We released the v5.5.152 service build. Please let us know if the issue persists.
David
SAPIEN Technologies, Inc.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: New exception in build 151

Post by jvierra »

Thank you.

The code causing this for me now works correctly.
This topic is 5 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.