Link to home
Start Free TrialLog in
Avatar of mikepj
mikepjFlag for Canada

asked on

"Too many open files" with dbase(?) program in xp

we're trying to use an old (i think dbase or clipper) program in windows xp.  we're getting the error "Too many open files" with dbase(?) program in xp.  it worked on win 98.  i figured that'd be easy so i did:

edit C:\WINDOWS\system32\CONFIG.NT and change Files=40 to Files=99.  
tried creating a pif file that points to that config.nt file and also use compatibilty mode for win95.

still getting the same error!
SOLUTION
Avatar of GuruGary
GuruGary
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mikepj

ASKER

thank you for your reply.  still doesn't work...
After you updated config.nt, did you reboot the computer?
What was the "files=" setting on the Win98 PC?
Avatar of mikepj

ASKER

thank you for your responses!

>After you updated config.nt, did you reboot the computer?

yes

>What was the "files=" setting on the Win98 PC?

i don't know know--i'll need to have a peek at it.
ASKER CERTIFIED SOLUTION
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mikepj

ASKER

thank you for your reply!

>The files setting mentioned above is usually the fix for this.  

good to know--i'm a programmer but since windoze i never had to do this.

>When you tried it you didn't use a number larger than 250 did you?  

no

>You also did it like the example GuruGary provided (i.e lower case, no spaces, etc).  A number bigger than 250 will probably be ignored.

my file was the default except for the files value:

dos=high, umb
device=%SystemRoot%\system32\himem.sys
files=250

>How are you starting the program?  

using a shortcut or pif.

>Does the error occur immediately or later on?  

it shows a splash screen & after that an error.

>The config.nt file should be used anytime a DOS window is opened so you don't need a PIF.  

good to know.

>I suggest trying to open a DOS prompt first and then starting your program from the prompt.

same problem...

any other ideas?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mikepj

ASKER

thank you for your reply!

>Two more: (these may be somewhat silly or very involved)

not silly at all!

>1. install VirtualPC and then install Win98 and run you app inside the Win98 session

this i expect will work.  have had pleasant experiences with VMs (http://www.easyvmx.com/ will make a vm for use with VMWare for free)

>2. install DosBox and try the app in that environment: >http://dosbox.sourceforge.net/news.php?show_news=1

that's an interesting option; regrettably it shows the same error and i see no way to control this.  

i haven't been back there yet to try to address this problem.  hopefully this week!
Have you tried either procexplorer or filemon. You need to monitor the ntvdm process. This might shed some light on the problem. Anyway it is just an idea.
Avatar of mikepj

ASKER

thank you all for your comments.  in the end, i copied the relevant parts of the config.sys and autoexec.bat files to their *.nt equivalents and it worked famously.
I'm glad I could help.  Thanks for the grade, the points and the fun question.

bol
I am glad it all worked out for you!