Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms still in memory after Doform()
Message
From
27/03/2002 09:24:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Forms still in memory after Doform()
Miscellaneous
Thread ID:
00637801
Message ID:
00637801
Views:
48
Hi everybody,

We have an issue with our app slowing down after about an hour of heavy data entry and then eventually consuming all the computers resources and crashing. EEEKKK!!!

We tracked it down to this situation.

The following is in menubar1.click()

lcID = DoForm(GoApp.oMMFactory.GetClassName('Form1'), 'A')

IF !EMPTY(lcID)
lcID2 = DoForm(GoApp.oMMFactory.GetClassName('Form2'),lcID, 'A')
ENDIF

RETURN


Each time I click on this menu item, I can do a DISPLAY MEMORY and there is a Window definition for Form1. If I look at the datasessions, there is still Form1(1), Form1(2)...etc for each time I have run this code.

Why is DOFORM() not releasing these windows from memory and destroying their datasessions?

The form is based on cbizobjmodalform. It has one bizobj, a cgridlist, 4 buttons, chighlighteffect control and a cmouseoverfx control. It's just a list of client names that the user chooses.

Any help and/or suggestions will be appreciated.
Next
Reply
Map
View

Click here to load this message in the networking platform