Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data session persistence?
Message
 
 
To
24/02/2011 08:53:50
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01501524
Message ID:
01501684
Views:
48
Tamar,

Thanks for your suggestions.

1. I understand your first one.

2. I'm not clear what you are saying in the second one. I am using a VFP client to instantaite my COM server for testing, although the ultimate client will be a C++ app at this point. Is this what you are suggesting?

Jim

>>All of this would be much easier to figure out if I could actually run the COM server under the VFP debugger, but that is not possible without a great deal of effort.
>
>Jim - I'm a big believer that every VFP COM Server needs a LogIt (or AddToLog or ...) method that writes out whatever you pass it to a text file. Set up the log in the server's Init method, storing the filename in a property. Then, it only takes one line to add some debugging code anywhere in the object:
>
>This.LogIt("Starting blah blah blah. Variable xyz = " + m.xyz)
>
>You can also instantiate VFP objects defined as COM servers natively in VFP for testing. It's not complete testing, but it can save you a lot of work up front as you weed out the typos and other simple errors.
>
>Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform