Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating objects drain memory
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00085047
Message ID:
00085195
Views:
38
>Is there some reason you cannot create those objects once and keep them. Then just call their methods when you need to. I could guess that the creation and destruction of the objects is causing memory to become fragmented over time. Creating them once and leaving them there until you are really done with them would be a more solid approach (at least as far as internal memory management goes).

Well, I guess maybe I need to rethink my design. It would be possible to create them once. It would mean merging my classes into one class. I thought having separate classes was the more object-oriented approach, but I guess I need to take the practical approach.

BTW, if what you suggest is true about fragmented memory, it sounds like that is bug in FoxPro.

Thanks!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform