Folderbrowsermoderndialog makes program crash in debug

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 1 month 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.
User avatar
ronkna
Posts: 15
Last visit: Wed Jan 03, 2024 6:12 am

Folderbrowsermoderndialog makes program crash in debug

Post by ronkna »

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: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Folderbrowsermoderndialog makes program crash in debug

Post by Alexander Riedel »

[Moved to correct forum by moderator]
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Folderbrowsermoderndialog makes program crash in debug

Post by Alexander Riedel »

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: 15
Last visit: Wed Jan 03, 2024 6:12 am

Re: Folderbrowsermoderndialog makes program crash in debug

Post by ronkna »

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: 15
Last visit: Wed Jan 03, 2024 6:12 am

Re: Folderbrowsermoderndialog makes program crash in debug

Post by ronkna »

Alexander Riedel wrote: Tue Jan 29, 2019 7: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: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Folderbrowsermoderndialog makes program crash in debug

Post by Alexander Riedel »

This will of course be included in the next service build.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
ronkna
Posts: 15
Last visit: Wed Jan 03, 2024 6:12 am

Re: Folderbrowsermoderndialog makes program crash in debug

Post by ronkna »

Thank you!
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Folderbrowsermoderndialog makes program crash in debug

Post by davidc »

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.
This topic is 5 years and 1 month 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.