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.
Another option is to have the CreateObject call in an ActiveX EXE which runs outside of your process.
I don't have VB6 any more otherwise I would knock up an example for you.
You may find this MS link about ActiveX EXE's useful http://msdn.microsoft.com/en-us/library/aa262306(v=vs.60).aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With