Gary Smit
2008-11-25 13:00:46 UTC
I am having a problem with my app using up page file memory.
Below is the code I am using to call the forms:
function Menu_EditEstimate
local m1
_app.EstimateID=0
set procedure to estlocate.wfm additive
m1=new EstLocateForm()
m1.text = "Estimate Number Search"
m1.mdi = false // ensure not MDI
m1.readModal()
m1=null
if _app.EstimateID=0
_app.oEstMgr.SetFocus()
else
_app.oEstMgr.oOpen1=new object()
set procedure to newest.wfm additive
_app.oEstMgr.oOpen1=new newestform()
_app.oEstMgr.oOpen1.text = "Edit ESTIMATE Number"
_app.oEstMgr.oOpen1.mdi = false // ensure not MDI
_app.oEstMgr.oOpen1.readModal()
_app.oEstMgr.oOpen1=null
_app.oEstMgr.SetFocus()
endif
return
The problem is that after this is called repeatedly (to edit one estimate after another) the page file usage increases every time the above code is called. After about 7 consecutive calls the application freezes. If I close the application before this, the page file usage goes back down to where it was before I opened the app.
Could anyone tell me what I would need to do to be able to repeatedly open the function above without exiting the app after 6 times?
The estlocate.wfm is the user interface to find an estimate, the newest.wfm is the user interface to add or edit an estimate record.
The newest.wfm opens various .dbf files, .dmd files and .cc files.
My thought was that I wasn't releasing something from memory but I thought that happened automatically.
Any help or comment is appreciated.
Thanks,
Gary Smit
Below is the code I am using to call the forms:
function Menu_EditEstimate
local m1
_app.EstimateID=0
set procedure to estlocate.wfm additive
m1=new EstLocateForm()
m1.text = "Estimate Number Search"
m1.mdi = false // ensure not MDI
m1.readModal()
m1=null
if _app.EstimateID=0
_app.oEstMgr.SetFocus()
else
_app.oEstMgr.oOpen1=new object()
set procedure to newest.wfm additive
_app.oEstMgr.oOpen1=new newestform()
_app.oEstMgr.oOpen1.text = "Edit ESTIMATE Number"
_app.oEstMgr.oOpen1.mdi = false // ensure not MDI
_app.oEstMgr.oOpen1.readModal()
_app.oEstMgr.oOpen1=null
_app.oEstMgr.SetFocus()
endif
return
The problem is that after this is called repeatedly (to edit one estimate after another) the page file usage increases every time the above code is called. After about 7 consecutive calls the application freezes. If I close the application before this, the page file usage goes back down to where it was before I opened the app.
Could anyone tell me what I would need to do to be able to repeatedly open the function above without exiting the app after 6 times?
The estlocate.wfm is the user interface to find an estimate, the newest.wfm is the user interface to add or edit an estimate record.
The newest.wfm opens various .dbf files, .dmd files and .cc files.
My thought was that I wasn't releasing something from memory but I thought that happened automatically.
Any help or comment is appreciated.
Thanks,
Gary Smit