Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory Mgmt & native objects vs. COM objects
Message
 
To
01/08/2001 17:23:32
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00538233
Message ID:
00539040
Views:
20
Hi Dan,

>If VFP is using a memory structure internally, why does it need to keep the VCX open?

I can imagine a number of reasons. But before I should make clear that this is pure speculation fromt this point on.

The VCX is used to create a class structure in memory. The structure (or maybe a C++ object) in memory is much more efficient to deal with in a language like VC++ in which VFP is written. That's why VFP can't work with the VCX alone.

The VCX could be kept open, because eventually pointers in the structure point to parts of the VCX that is loaded in the cache, eg. the compiled code. Moreover, when you create a class, VFP has to dermine the entire object and class hierarchy. I could imagine that doing so in the tables is an efficient way. Finally, if you could modify the VCX class while it is loaded, the class would go out of sync with the memory copy. Depending on wether VFP uses the internal version or the VCX file when loading a new class, you would see all kind of strange behavior.

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform