Window problem on export

[expired user #4516]'s profile image [expired user #4516] posted 13 years ago in Import/Export Permalink
While doing export operation the program window can`t be brought to front or minimize it. the only way to see the window is to minimize all windows higher, but this doesn`t work if there are more then one heidi instance on export operation.
ansgar's profile image ansgar posted 13 years ago Permalink
Well that's quite normal - your clicks are not processed until there is some CPU time in that thread again.
[expired user #5249]'s profile image [expired user #5249] posted 13 years ago Permalink
therefore you could maybe add a call to "processmessages" or such in your export routine after a few steps.
sorry for my interjection, it just came to my mind and my analysis is only based on this 2 posts :D
ansgar's profile image ansgar posted 13 years ago Permalink
Hehe, yes. ProcessMessages can introduce unexpected behaviour when a process runs and expects certain controls being in a specific state. But I guess the export dialog does not have such expectations, so ProcessMessages could be the right approach here.
Code modification/commit from ansgar.becker, 13 years ago, revision 6.0.0.3623
Call Application.ProcessMessages in certain intervals while export runs, and disable most controls so nothing critical can break the export loop. See http://www.heidisql.com/forum.php?t=7174 .
ansgar's profile image ansgar posted 13 years ago Permalink
See r3623
[expired user #4516]'s profile image [expired user #4516] posted 13 years ago Permalink
works much better, thank you

Please login to leave a reply, or register at first.