Replies: 1 comment
-
I had this crash. Js : await hostObjects.comObject.OpenFileDialog/BrowserFolderDialog/ ...and so on. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
[EDIT] This problem appears only in debug mode, without attached debugger / in release mode it works as expected. VS2022
Hi, I have made the following observation when using HostObjects:
In my application, I am executing native code in C# through a JS call. The corresponding method opens an OpenFileDialog on the C# side, a file can be selected and you get the path back - so far it works quite well.
Now, if I don't make any selection in the dialog and just do nothing, after a few seconds (around 10s) the whole program terminates and dies.
Apparently the waiting Promise on JS side causes this crash?
Since my customers are sometimes "a bit slow" in selecting their files, or will spend a long time searching in their folders, of course the 10 seconds are not enough here.
Is there any explanation for this phenomenon or any way to stop this behavior?
JS-Side
C#-Side
Beta Was this translation helpful? Give feedback.
All reactions