Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Asynchronous OLE
Message
 
To
22/06/1999 23:33:59
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00232124
Message ID:
00232845
Views:
21
Hi Erik,

>After looking at Christof's suggestion, I played around and successfully implemented a single-threaded server that starts a timer, returns control to the caller, and has the timer set an object property with the results of the query. This way the client can poll the server for results, and cancel if he chooses.

At DevCon I played with passing object references around via COM. In an earlier version this crashed my system sometimes, but SP 3 seems to more reliable here. What I found especially cool is that you can pass a reference of an object in the Form/Class Designer to another application and for example remote control the Class Designer from Word. *g* Anyway, why don't you pass a reference of the VFP application when you call the method of the COM server and when for example the query finished, you call a method (like events). Then the application doesn't have to poll the server constantly. I haven't tried that myself, though.

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform