folderBrowserDialog - Hangs in Debug (Visual Studio or VS Code)

Issue #214 resolved
Former user created an issue

Hi,

The issue is when I try to trigger a folderBrowserDialog action during debugging, the form hangs and must be terminated. Prior to pressing the button control that has the action assigned all other controls work properly. If I run *.exe that is generated from the same build then it works as expected.

The odd thing is that it worked at first but I have since updated the script, the tools and Visual Studio so I am not sure when things changed. I have also made a simple project that just has the minimum controls but that fails in the same manner.

Is this related to the STA mode? and if so can I specify this at debug so it works there too?

Comments (4)

  1. Adam Driscoll

    If you go to Options->PowerShell Tools you can change the mode to STA. Give that a shot and see if it helps.

  2. Log in to comment