Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memory leak
Message
De
30/12/1999 11:50:55
 
 
À
30/12/1999 10:57:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00310104
Message ID:
00310454
Vues:
14
>>Are you compiling the app as a single monolithic .EXE or multiple .EXE's?
>
>Multiple exe's.

The loading and unloading of class libraries into memory definitely behaves differently in that situation. You shouldn't have the problem with a single .EXE (which may or may not be an option for you).

This is a SWAG but since VFP is by nature single-threaded it appears that each EXE loads the class lib into a separate chunk of memory. Once in, it doesn't come out, or at least can't be cleared by a different EXE (I don't know if the EXE that loaded it can successfully remove it). We had a similar situation in an early version of a project that was compiled into multiple APPs called by a central EXE. Moving to a monolithic EXE solved that problem and several more.

Hope that helps...
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform