Information générale
Catégorie:
Applications Internet
Titre:
Persistence of open DBF's using in-process VFP COM servers
Here is something that does NOT seem to be happening the way I recall it is supposed to happen: When an in-process COM server opens a DBF (for example, in its INIT method), I was told that the DBF is closed when that server object is destroyed, and that this happens regardless of what you explicitly code within the methods of the object. In other words, when you say in ASP: oMyVFPServer=Nothing, then the VFP COM object is destroyed and any open DBF's are by default closed within VFP's own internal cleanup mechanisms (even though your COM DLL itself stays loaded). That is apparently NOT what happens. My experience has been that if you don't explicitly close your tables within (for example) a DESTROY event, then they remain held open by the COM DLL even if NO instances of the COM object are in existence. What's the truth here? I'm not sure that I'm testing things correctly to arrive at this conclusion (but I think I am). Thanks!
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement