Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Creation and Releasing (or not)
Message
 
To
03/09/2008 07:54:42
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01344428
Message ID:
01344447
Views:
16
Hi Jay,

I'd keep record references only constantly available if the cost of creating the object is high. That's the case with out-of-process servers, especially those that are regular applications like Word, Excel, etc. Classes such as the XML parser, however, are comparable light class that are quickly to instantiate. On my machine it takes like 50 ms to instantiate 1000 of these objects. Therefore I would create a new object whenever I need one and store in a local variable.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform