[python-win32] OLE Server Busy dialog box

Diogo odiogo at kameruuh.eu
Thu Aug 10 14:15:44 CEST 2006


Hi list!

It follows how the "OLE Server Busy" problem can be solved.

The problem is this:
"If you call a method on a COM server from an MFC COM client
application and if the method takes a long time to process and return
back, you won't be able to do anything on the client application and
the OLE Server Busy dialog box pops up..." [1]

To solve that, Mark modified the win32uiole, adding the necessary functions.

Something like the following should be enough:

import win32ui
import win32uiole

if hasattr(win32uiole,'SetMessagePendingDelay'):
    win32uiole.AfxOleInit()
    win32uiole.SetMessagePendingDelay(aBigDelay);
    win32uiole.EnableNotRespondingDialog(False);
    win32uiole.EnableBusyDialog(False);

Note that these functions are not yet avaiable in release 209.

Thanks for the help!

Regards,
Diogo

[1] http://support.microsoft.com/?scid=kb%3Ben-us%3B248019&x=14&y=15


More information about the Python-win32 mailing list