Folderbrowsermoderndialog makes program crash in debug

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
User avatar
ronkna
Posts: 10
Joined: Fri Apr 22, 2016 3:39 am

Folderbrowsermoderndialog makes program crash in debug

Post by ronkna » Tue Jan 29, 2019 6:50 am

Hi there,

There has been a thread about something similar but that one is closed.

My situation is as follows, I've made a form with several buttons to select a folder. Up till today everything worked fine. I used the debugger often to solve bugs as usual.

But since today, when I'm in the debugger and I press a button that should execute $folderbrowsermoderndialog1.ShowDialog() the form hangs.

I also created a new form with only one button and it gives the same results. One of the solutions someone provided was to enable STA but it was from the beginning.

When I run the script without the debugger, everything works fine :shock:

I had an old installation of SPS2018 on my laptop, so I tried it there and everything worked fine. Then I updated it to the newest version and that killed it... Same results as on my main PC. And I have tried turning my computer off and on again :D

My main pc has the following version:
Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.157
OS: Windows 10 Education (64 Bit)
Build: v10.0.17763.0

My laptop has:
Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.157
OS: Windows 10 Education (64 Bit)
Build: v10.0.14393.0

Is this version related?

User avatar
Alexander Riedel
Posts: 6906
Joined: Tue May 29, 2007 4:43 pm

Re: Folderbrowsermoderndialog makes program crash in debug

Post by Alexander Riedel » Tue Jan 29, 2019 8:39 am

[Moved to correct forum by moderator]
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
Alexander Riedel
Posts: 6906
Joined: Tue May 29, 2007 4:43 pm

Re: Folderbrowsermoderndialog makes program crash in debug

Post by Alexander Riedel » Tue Jan 29, 2019 8:39 am

Try downloading this: https://sapien.s3.amazonaws.com/downloads/Support files/ScriptDebugger 2019.zip
and replacing the files in C:\Program Files (x86)\Common Files\SAPIEN Debugger 2019
Please make a backup of the current files before doing so.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
ronkna
Posts: 10
Joined: Fri Apr 22, 2016 3:39 am

Re: Folderbrowsermoderndialog makes program crash in debug

Post by ronkna » Tue Jan 29, 2019 8:54 am

Well, it sure does like a version problem.

I've installed an bit older version and now everything is working fine!

The version I'm running now is:

Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.156
OS: Windows 10 Education (64 Bit)
Build: v10.0.17763.0

User avatar
ronkna
Posts: 10
Joined: Fri Apr 22, 2016 3:39 am

Re: Folderbrowsermoderndialog makes program crash in debug

Post by ronkna » Tue Jan 29, 2019 9:05 am

Alexander Riedel wrote:
Tue Jan 29, 2019 8:39 am
Try downloading this: https://sapien.s3.amazonaws.com/downloads/Support files/ScriptDebugger 2019.zip
and replacing the files in C:\Program Files (x86)\Common Files\SAPIEN Debugger 2019
Please make a backup of the current files before doing so.
I tried this on my laptop and it worked excellent!

Tomorrow I will update my main computer with the newest version of SPS and replace the debugger!

Thnx!

User avatar
Alexander Riedel
Posts: 6906
Joined: Tue May 29, 2007 4:43 pm

Re: Folderbrowsermoderndialog makes program crash in debug

Post by Alexander Riedel » Tue Jan 29, 2019 9:09 am

This will of course be included in the next service build.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
ronkna
Posts: 10
Joined: Fri Apr 22, 2016 3:39 am

Re: Folderbrowsermoderndialog makes program crash in debug

Post by ronkna » Tue Jan 29, 2019 11:56 pm

Thank you!

User avatar
davidc
Posts: 5833
Joined: Thu Aug 18, 2011 4:56 am

Re: Folderbrowsermoderndialog makes program crash in debug

Post by davidc » Tue Feb 05, 2019 9:13 am

We released the v5.6.158 service build that resolves this issue:

https://www.sapien.com/blog/2019/02/05/ ... -v5-6-158/
David
SAPIEN Technologies, Inc.