I am using Shell in a VB6 program to launch an external application, then using OpenProcess and WaitForSingleObject API calls to suspend my program until the external application terminates.
I am also using the Sleep API call to suspend my program for specific amounts of time.
My problem is that when my program is suspended in these ways, launching applications "by association" (eg. double-clicking a .doc file) becomes ENORMOUSLY slow. So slow, that the PC appears to lock up.
I see this problem when the application I launched with Shell tries to launch further applications to display .doc files etc, and also in Windows Explorer when I double-click a .doc file.
Does anyone know why this happens, and/or how to fix it?