Can someone suggest how I can terminate or go around a CreateObject
operation that occasionally takes minutes to finish? Basically I have this code:
Set m_Zeacom = CreateObject("QmCOM.QIntegrate")
that works instantly most of the time, but for some users may take minutes (why - is not important in this context). So what I'd like to do is to set a time limit on CreateObject
execution and either kill it or detach my app from it. I've played around with DoEvents
trying to proceed with the other code while CreateObject
is hanging, but without any luck.