PDA

Click to See Complete Forum and Search --> : COM: Method call in object doesn't block client?


frundatz
Jan 27th, 2000, 02:10 AM
I have a need to have a client application use a COM object that will input a record into a database by setting properties on the out-of-process ActiveX EXE and then calling a .Save method on it. Everything works but I would like to allow the client application (standard EXE) go about its business while the COM object executes the .Save method. I have added a public Event to the COM object and the RaiseEvent directive and all of that works - HOWEVER... When I call the .Save method, the client is still blocked until the execution of the .Save method is complete (and then it worthlessly raises the event I have programmed in the client app).

I figure I can do it a hoky way by putting a timer into the COM object that checks to see if a .SaveStatus property equals true every second but that seems like a ridiculous workaround for just creating a non-blocking method call.

Any ideas?

Thanks much!