Weird behavior from executable.

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

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 4 years and 8 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.
Locked
DaveMcDonald
Posts: 15
Last visit: Fri Sep 15, 2023 9:48 am

Weird behavior from executable.

Post by DaveMcDonald »

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: PowerShell Studio 2019 v5.6.165
32 or 64 bit version of product:(64 Bit)
Operating system:Windows 10 Enterprise
32 or 64 bit OS: (64 Bit)

*** Please add details and screenshots as needed below. ***

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

This is interesting. I only see this behavior on my computer so far.

When running as exe (screenshots attached in file).

1. I browse using foldermoderndialog, the resulting path is displayed in text box.

2. Third tab check boxes are now cut off. Last character is missing.

Screen shots of build settings in file.

I am at a loss why this would do this only on one pc (I have tested on a tablet, laptop (Same OS etc as above) and no issues.
screenshots.pdf
(230.09 KiB) Downloaded 341 times
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Weird behavior from executable.

Post by Alexander Riedel »

Do your computers have different resolutions and scaling factors?
Alexander Riedel
SAPIEN Technologies, Inc.
DaveMcDonald
Posts: 15
Last visit: Fri Sep 15, 2023 9:48 am

Re: Weird behavior from executable.

Post by DaveMcDonald »

Most likely. But why would this only cut off the text in two check boxes?
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Weird behavior from executable.

Post by Alexander Riedel »

Scaling in Windows is a science in itself. Makes sure to size all check boxes, buttons, labels etc with as much extra horizontal space to account for variations in scaling factors, font sizes and different default fonts on different systems.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Weird behavior from executable.

Post by davidc »

This article may be of assistance to you:

https://info.sapien.com/index.php/guis/ ... i-displays
David
SAPIEN Technologies, Inc.
DaveMcDonald
Posts: 15
Last visit: Fri Sep 15, 2023 9:48 am

Re: Weird behavior from executable.

Post by DaveMcDonald »

So now, I have one that is absolutely perplexing me.

When I play my form, everything seems to work as it should.

When I convert it to an executable (Build settings are the same) I am getting this error on exectution of start-job

ERROR: [localhost] The background process reported an error with the following message: .
ERROR: + CategoryInfo : OpenError: (localhost:String) [], PSRemotingTransportException
ERROR: + FullyQualifiedErrorId : 2100,PSSessionStateBroken

Attached is windows error message.
error.pdf
(41.08 KiB) Downloaded 315 times
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Weird behavior from executable.

Post by Alexander Riedel »

Without knowing exactly what your code does, that is hard to diagnose.
I will move this to the general PowerShell section.
But since it seems to involve remoting, I would look into permission and firewall settings.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Weird behavior from executable.

Post by Alexander Riedel »

[Moved by moderator]
Alexander Riedel
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: Weird behavior from executable.

Post by jvierra »

"Start-Job" spawns a new PowerShell instance. This is aborting when it tries to remote.

You say this only happens on one system. I would first suspect the system has an issue.
This topic is 4 years and 8 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.
Locked