Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data session persistence?
Message
From
25/02/2011 09:11:23
 
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:
01501814
Views:
46
>What I am trying to do is create a COM EXE server. The user calls a method in the COM server that calls a form. The form instantiates a view, which presumably is a table in the data session. The form closes, and the function returns to the caller.
>
>Since instantiating the view is actually time consuming, and, the table will not change from call to call, I would like the next call to the form to be able to use the same table.
>
>I know that this isn't the way you're supposed to use COM servers, but I have only one user who needs this.
>
>So, if the form is sharing the same data session as the object that called it. When the form closes, does the table live on in the common data session?

I#m not to clear visualizing your needs - but why not keep the form around if it is a single app scenario ? Just call it caching ;-)
If many apps need to call the same form/view, look into calling into a vfp exe via OLE. Might be a better fit if the same data is needed, or re-using the same Exe-activeX with getobject()


HTH

thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform