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:
00262620
Views:
22
>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.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform