[Wine] Re: App Hangs on a Long Running Operation

vitamin wineforum-user at winehq.org
Sun Sep 28 10:51:31 CDT 2008


jcobban3 wrote:
> I am reasonably confident that my app is doing something wrong that violates the letter of the Win32API, however performing one long-running command the program does work as expected on Windows but under Wine it hangs.  This is the sort of function in which the app presumably forks off a thread to perform the long running operation, and the new fork periodically sends messages back to the Windows thread to update a progress dialog.  Under Wine when I issue this command the progress dialog is never updated and I have to kill the app process, which leaves the database being updated by the app in an undefined state.
> 
> There are other long running commands in this app that work fine, including updating the progress dialog; for example opening and closing the database. That is what leads me to believe that there is an implementation error in the app on this one specific command.
> 
> I am not expecting to be able to fix this, I just would like to understand what is special about this one command that it does not work under Wine.

It's hard to talk abstract in this case. Show some code snippets - how you start child process/thread? How are you sending messages back?
BTW you can only fork a process not a thread. It's not correct to say "fork a thread". You just create a thread, since win32api supports kernel threads.







More information about the wine-users mailing list