Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM Server problem
Message
From
29/01/1999 04:23:54
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00181348
Message ID:
00181698
Views:
8
David

The COM object is based on a Form class and contains a Timer object - nothing else. I have some code in the Error method of the form which grabs the error method parameters puts them into a string and uses COMReturnError to send the string to the client. I got this from the COM Server sample available on the MS VFP site. Anyway this seems to work fine when I deliberately create an error providing I do not use the timer.

There is no error handling code in the timer object itself ... should there be?

The Timer is disabled in the very first line in its Timer method. I have the interval set to about 500.

PS I am using a form for two reasons
1) I need a container of some sort if I am to include a Timer object
2) I can set its datasession to private this would allow the COM object to be multiple-use but each use would use a separate set of tables - is this a correct assumption?

David
Previous
Reply
Map
View

Click here to load this message in the networking platform