Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sizing memory use
Message
 
 
To
26/08/2009 12:44:27
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01420721
Message ID:
01420868
Views:
39
>>
>>Basically I was thinking about using a form class as a base for my BO object. But aside from the memory, I tested the time it takes to load these type of objects into the memory and it takes considerably more time than, say, custom class.
>
>I think you will have better results using a custom or session class. do you really need an init?
>
>Look at this:
>
>http://fox.wikis.com/wc.dll?Wiki~TestMemoryCreateDestroy~VFP

I did see this page. Thank you.

I would prefer to use a visual class but with a DataSession. Session has it but not visual. Custom is visual but has not DataSession. Form is the only one that has both. But there is quite a memory hit and loading time with a form.
Yes, I do need INIT method. And I would prefer to ability to drop the BO on the form rather than instantiating it in INIT method of the UI form. So it is either a form or custom class instantiated in a session based .prg class. Not as I would like it to be but nothing is perfect, unfortunately.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform