Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Persistence of open DBF's using in-process VFP COM servers
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Persistence of open DBF's using in-process VFP COM servers
Divers
Thread ID:
00321574
Message ID:
00321574
Vues:
58
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
Fil
Voir

Click here to load this message in the networking platform