Hi All,
I have dll which process data and its take some 30 sec to finish. When I call dll function from Window its freeze an app until function finish.
I create thread and move dll function to its Run method, but its freeze GUI any way.
Some advance?
Thanks,
Chris.
That’s really not much to go on, but it’s possible that the call to the dll is synchronous and that it blocks ui updates. does the dll yield time for that?
Unlikely the dll yields time back to the Xojo runtime so its blocking everything regardless of whether you put it in a thread or not
The solution is probably to use a helper program, Console or Windowless Windows executable, launched via shell, which deals with the DLL, and communicates with the main program through IPC or other way.
An asynchronous shell will prevent the UI from being frozen.
Hi, thanks to all.