W
Will Chapman
Being aware that CF apps need to be especially
aware of conserving memory and processing power,
what is best practise for the following:
I have calls to the Registry scattered throughout
my code (keeping records of current settings).
Is it better to create a Registry object at launch
and then use it as needed or create a new object
time it is required? I'm coding in C#.
If the latter, is it better to destroy the object after
use or leave it up to the garbage collector (given that
user activity might create two Registry objects
immediately following each other) ?
aware of conserving memory and processing power,
what is best practise for the following:
I have calls to the Registry scattered throughout
my code (keeping records of current settings).
Is it better to create a Registry object at launch
and then use it as needed or create a new object
time it is required? I'm coding in C#.
If the latter, is it better to destroy the object after
use or leave it up to the garbage collector (given that
user activity might create two Registry objects
immediately following each other) ?