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!

Too Many Files Open Using Runtime 2.5 with XP

Status
Not open for further replies.

phavenhand

IS-IT--Management
Feb 21, 2003
13
GB
Does anybody know of an answer for this.

I have a foxpro 2.x application which works fine when run using Foxprox ver2.6 , but when run using 2.5 Runtime,
always get an error 'Too Many Files Open'

I have got a files=200 line in my config.nt file , but that
does not seem to help.

The runtime version works fine when run from a windows 95/98 machine. Have not tried a w2k machine but assume it would be the same as the xp machine.

Any help appreciated.

Pete
 
Update to the foxpro 2.6a runtime and recompile your application and your problems are over.

Rob.
 
Thanks for yor reply.

What is the difference between the two runtime versions.

And why would it work ok with runtime under windows 95/98 , but then stop when running under xp.

Does the runtime 2.5 version not recognise the statment in
config.nt?

Regards

Pete
 
XP is much more critical on "old" dos / windows applications.

Experience has shown that XP accepts the Foxpro Dos and Windows 2.6a version when the fast cpu patch has been applied.

So get it up to version 2.6a and it will run without problems.

Rob
 
If you do not have the foxpro professional edition and you cannot distribute applications let me know, and I'll put up a link for a foxpro 2.6a runtime file.

Rob.
 
Some extra info from a readme included in one of the patches:


Microsoft(R) Foxpro(tm) for Windows(tm) has a problem running on Pentium-class
computers with processor speeds of 333 megaherz and higher. As soon as a
program written in Foxpro for Windows 2.5 or 2.6 tarts to launch you may
get an error message saying "Divide by Zero or Divide Overflow". DZPatch is
a fix for this problem. It modifies 32 bytes in the middle of the Foxpro library files
(i.e. foxprow.exe and foxw2600.esl for Foxpro 2.6) to prevent the error from
occurring.

Note that the same applies to Foxpro 2.6a Dos.

Rob.
 
Rob

I do not have the Professional edition .

Is it possible for a link to the runtime version.

Or is it still possible to buy a runtime version

Regards

Pete
 
Something went wrong with the links so once more:

Here are the links to the runtime files:

For foxpro 2.6a DOS:

(790 kb)

For foxpro 2.6a Windows:

(1043 kb)

Good luck!
If this still doesn't work and you want your application to be recompiled just let me know.

Rob.
 
Thanks rob , i got the file.

However , what do i do with this?

The runtime version i am running (2.5)has 6 files

Driver2.plb
Foxr.exe
Genpd.app
Foxd250a.esl
Foxdx25a.esl
Foxd250a.eso

Excuse my ignorance , but how do i utilise the Foxdx260.esl
file. I tried removing the foxdx250.esl and putting in the new file , but that gives the same error and is still running the 2.5 Support Library.

Any help would be greatly appreciated

Pete
 
In the directory where your application runs remove all fox25..esl or .eso files and put the fox26 esl there.
That should do the job.

Rob.
 
Rob

I already tried that also. I have a folder /foxrt where all
the files are. I made it so that it only contained the following

Driver2.plb
Foxr.exe
Genpd.app
Foxdx260.esl

When you run the foxr you get the error message :

"Cannot locate the desired version of Foxpro"

Isnt there a version of Foxr and all the other files which ships as part of Runtime 2.6 ?

I do appreciate your continued help with this.

Pete
 
Foxpro 2.6 has its own version of foxr although I do not know if its a different version or not.

You do not need foxr to run your application - if it's an exe.

But I'll put up a link here for foxr.zip


If this doesn't work we have to recompile your application....

Rob.
 
Rob

Thanks again

Our application is not an exe file . For various reasons
we run from the compiled spr , fxp etc...

Thus i need to run foxr first and then call the fxp routine to start the application.

Bit antiquated i know , but there are reasons.

And using the 2.6 version of foxr still brings up the "Cannot locate the desired version of Foxpro"

Must need the various libraries for this to run. I will have to hunt around for a 2.6 copy, but do not want to spend the bucks if this will not cure my problem.

Regards

Pete

 
I think you need 2.6a versions of those files because somewhere in it is a reference to 2.5
If it isn't too much programcode I am willing to recompile it in fox26a for you.

If you want this, zip your app and send it to me for recompilation.

r.brioul@hccnet.nl

Rob.
 
Just to follow up on this.

I eventually found out that if you call the runtime
routine from a pif file , then everything works great.

You CAN run runtime 2.5 under XP but you gotta use a pif to call it.

This is similar to the Windows For Workgroups idea from about 7 years ago.

 
Pete,
I didn't recognize you as the same person asking the questions on the MS Fox2x newsgroup. I guess this ties up two different threads!

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top