https://bugs.winehq.org/show_bug.cgi?id=37038
--- Comment #12 from Sebastian Lackner sebastian@fds-team.de --- It doesn't really matter where you add it, it should be sufficient to run it from time to time (as part of a callback for example, ...). If modifying the program is not possible, then please attach a +server log, this should also allow to see this issue.
WINEDEBUG=+server wine your_program.exe >> output.log 2>&1
To explain why I'm suggesting that: For bug 36662 it turned out, that the problem was, that the program never entered alertable state after adding an APC call to the queue. Only specific API commands enter alertable state, you can find more information about that on the MSDN:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms681951(v=vs.85).as...