Greetings.
I have this program, where I make the decision to instantiate an object, or not.... (i want to avoid load time if this object is not necesary).
Is there a way I can ask if this class was instantiated once (at least) so further make other decisions... in finally block?
Thanks
VALID-OBJECT ?
Why don't you make use of a static class? A static class will only be loaded once, so no need to do checks if it's loaded or not.
Otherwise you might need to use SESSION:FIRST-OBJECT and recursively make use of the NEXT-SIBLING property on this object to cycle though all objects in memory. To check if the object is of a specific type you can make use of the object's GetClass():TypeName property.
VALID-OBJECT ?
Thanks!!! for such an elaborated (documented) answer.
My question arises from problems I get trying to use a fingerprint scanner. I can use it, and managed to use it's internal methods to validate and get templates (fingerprint "value"). The problem came if I use repeteadly, prowin freezes. I need to program the payroll entry screen, for 60 people in company... so not even in dreams it would be fehasible ...
I have the Initi() on the constructor, and DeInit() on destructor (Such are methods of scanner's .net module). As first attempt to make that functions available on demand (public methods) probed to be more difficult to keep memory consumption and long time running of scan module available. I'll recode them just in case I made some error at first attempt.