Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Theory question
Message
De
24/07/2009 10:20:33
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Theory question
Divers
Thread ID:
01414186
Message ID:
01414186
Vues:
114
I have a windows project that is comprised of multiple windows forms. In this project I have 3 support classes
BrObjects (Business objects)
BrValidation (various validation routines and value checking calls)
DataManager (handles querys, getting datasets, executing data commands etc)

Each windows form in the project needs and utilizes these 3 classes.

So here is my theory question: I currently create an instance of each of the 3 classes in each form (works fine). Is that the best way to do it? Is there a better way? Is it true that when the form is close() that Garbage Collection will eventually remove the memory used by the instance of these 3 classes?



Thanks

Alan Wyne
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform