Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timers in COM servers
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00262490
Message ID:
00262659
Views:
19
>>I could have sworn that I remembered seeing an example of doing something like this, so I went digging, and found the server example that shipped with VFP 5, that implements a pool in VFp using timers. So I compiled my project in VFP 5 and it worked! Did we lose something that I am not aware of? Do timers not work in COM servers any more? On my machine, running the following server as either a single use, multi-use or out of proc server produces no results. No errors, it just doesn't work.
>>
>>Here is my code, if you want to try it.
>>
>>
>>Then to test, use the following in the command window:
>>
>>oCOM = CREATEOBJECT("MacCOM")
>>oCOM.DoMethod("RunQuery")
>>?oCom.Done
>>
>>you can tell it didn't run because subsequent check of oCom.Done never return .T.
>
> Hmm. I just tried your code and it worked fine for me, under VFP 6. I even tried it a few times and changed the timeout value to something larger. Before the event fires, it's .F., after it's .T.

Duhh- my sample code shows instanciating the Fox object instead of the COM server. It works on my said with the native object as well- did you try it with the COM server?
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform