Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FoxPro Stack Fault

Status
Not open for further replies.

tnblkbear

Technical User
Dec 31, 2003
2
US
I am supporting an app developed in FoxPro 2.6a and have recently started getting the following error message when running certain modules of the program:

Foxprow caused a stack fault in module <unknown>xxxx:xxxx Foxprow will close.

I am getting it on several Windows platforms (XP, 98, 2000) and there doesn't seem to be any reason for the error. Does anyone have any suggestions?
 
Try deleting foxuser.dbf and foxuser.fpt files. They recreate at next program login.
 
I've also seen this problem when you don't limit the amount of memory that FPW can use. Make sure your CONFIG.FPW has a line like:
Code:
MEMLIMIT = 60, 2048, 16384
While some have suggested that these numbers are too low, they work for me!

Other applications are known to &quot;step on&quot; FoxPro's memory - old versions of Access, Win 3.x screen savers and virus checkers are among the usual suspects.

Rick
 
Thanks to everyone for their help. Just to be sure that all of the bases were covered, I reindexed the files, increased the stack size and the memory limit. I am not sure which one worked, but the error has stopped occuring and the modules are working again. Thanks again.
 
tek tips saves me again [smile]

i had the same error today after an uplanned server shut down, searched here for the error, and found this thread.

all i did was rebuild the indexes issuing the reindex command and my problem was solved

Code:
close data
clear memo
=adir(filelist,"*.dbf")
create cursor filname ( fname c(30))
index on fname tag fname
append from array filelist

scan
   scatter memvar
   if not inlist(m.fname,'FOXUSER.DBF')
      wait window m.fname nowait
      sele 0
      use (fname) exclusive
      reindex
      wait window dbf() nowait
      use
   endif
endscan
wait clear


Pete Bloomfield
Down Under
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top