Question

FoxPro 2.5 on Windows XP Machine

Asked by: ComputerWiz

I have a FoxPro 2.5 application that was running on a Windows 98 desktop.  I recently bought an XP Home edition desktop and installed FoxPro 2.5 on it but when I tried to execute FoxPro it gave me a "Divide by Zero or Overflow Error" message.  While doing the research online, it said to install updates and patches.  I did and that fix that error.  

On my old Win98 machine, I used to click on the FoxPro 2.5 icon and my application would start running immediately.  Now, when I open FoxPro 2.5, I simply get a blank screen.  Do I have to recompile the application?  What are the components that I need to include to run the database?

Jonathan Lanz

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-11-20 at 10:12:57ID20804241
Tags

foxpro

,

xp

,

windows

Topic

FoxPro Database

Participating Experts
2
Points
25
Comments
13

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Versions of Foxpro
    I am using Foxpro for Dos ver 2.6a. I want to upgrade to Foxpro for windows. I see on Ebay some Foxpro for windows version 2 for around $120. The box says it needs dos or windows 3.1 or newer. Is that a newer version? Does that mean it will run on win 98? Will my dos 2.6a ...
  2. FoxPro for DOS,
    OOOOOOOOppps.... the err is "Cannot locate desired version of FoxPro" I have a FoxPro for DOS application running on a server and with a shortcut to the executable from desktops. The shortcuts works okay with Win98 desktops but on the WinXP desktops I get the err...
  3. using foxpro 2.6 on Win2k & Xp￿
    Hi, I am using an application developed on foxpro 2.6 for windows. On win98 it worked fine but when i upgrade to win2k or Xp. it generates some error , i.e database file cannot be opened , is there any setting needed for win2k operating systems Pls any help is needed urg...
  4. FoxPro 2.6 Access Violation error under Windows XP
    I apologise up front for the abysmal number of points I can allocate to this question (30 is all I have available). I know nothing about FoxPro, but have had to convert a FoxPro 2.6a for Windows app for a client to Windows XP. I put in the patches to the FoxProw2600.esl run...
  5. Foxpro 2.5
    I recently installed FoxPro 2.5 on Windows XP, but when I tried to execute FoxPro it gave me a "Divide by Zero or Overflow Error" message. Where can I find the necessary patch to fix this error?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: CarlWarnerPosted on 2003-11-20 at 10:26:51ID: 9789573

The "Divide by Zero" error is typical for an old Fox version running on a faster, newer PC.  There is a patch for that is officially supported by MS and wants you to be at version 2.6a before you apply the patch.  Since you don't have 2.6 or 2.6a, I'm not sure how you're going to get there from version 2.5.

But, here's the references on what is causing your problems:

PATCH: FoxPro 2.6a Patch Files for FoxPro 2.6
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q102/8/93.asp&NoWebContent=1

PATCH: Patch_26.exe Fixes Divide by Zero Error on Fast Computers
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q240/9/82.asp&NoWebContent=1

 

by: ComputerWizPosted on 2003-11-20 at 10:31:43ID: 9789607

Carl, thanks for the links... those are the ones that I applied to FoxPro 2.5 and it seems to be working okay.  I still have the issue of not being able to run the application.  Can you help?

Jonathan

 

by: CarlWarnerPosted on 2003-11-20 at 10:34:15ID: 9789619

Once you get beyond the "Divide by Zero" error, you also may have to edit the Config.nt file in the System32 of the main Windows folder on the XP PC.  You will have to be sure you have enough file handles addressed as we always had to do for 16-bit apps, like FoxPro 2.5/2.6.  The default may be FILES=40 or FILES=20 in there.  Just hike up the number accordingly to allow lots of tables, index files, etc. to be opened at one time in a FoxPro session.  I use FILES=99, but others use numbers in the hundreds.  Whatever works for you.

 

by: CarlWarnerPosted on 2003-11-20 at 10:36:22ID: 9789631

If you still have the "Divide by Zero" error after getting updated as it seems you think you did, then the update process did not work correctly.  It does work, because I had to do it for an older app for someone back in 2000.

 

by: ComputerWizPosted on 2003-11-20 at 10:45:23ID: 9789680

I'm not getting the "Divide by Zero" error any more.  I did change the config.net to show 40 but I just bumped it up to 99.

Now I just need help running the application

Jonathan

 

by: CarlWarnerPosted on 2003-11-20 at 10:48:13ID: 9789702

<< Now I just need help running the application >>

If you're not getting the "Divide by Zero" error any longer, what message or symptom are you now getting when you are attempting to run an application?

 

by: ComputerWizPosted on 2003-11-20 at 10:52:16ID: 9789736

I go to "Run==>Application", the open file dialog box comes up and I pick Main.fxp and click run.  I get an error that says "C:\data\fox\main.fxp is not an object file"

Jonathan

 

by: CarlWarnerPosted on 2003-11-20 at 10:59:36ID: 9789775

OK.  Do you have the main.prg file available?  Just running that inside of FoxPro will force a recompile on the fly if the main.fxp is out of the way (deleted or renamed).  Evidently, it wants a new compile.

 

by: ComputerWizPosted on 2003-11-20 at 11:59:16ID: 9790116

actually, it's a file called startup.prg, I run it but I get lots of compile errors for variables missing.

AGUHWHGEHWPOIHJEN@!#$$#@%#$%#$^.... this is going to be fun.

jpl

 

by: CarlWarnerPosted on 2003-11-20 at 12:51:18ID: 9790473

Keep in mind, too, that those variables could be externally referenced in FLL calls or created through a call to a prg or gathered in from a .mem file.  If the compiler can't find them, it squawks but at runtime they very well could be in effect.

 

by: ComputerWizPosted on 2003-11-20 at 13:27:40ID: 9790777

Thanks!  I got it... :-)

jpl

 

by: ranga_kartikPosted on 2010-10-09 at 00:29:24ID: 33865928

hello ,

i have faced the same divide by zero error when running foxpro 2.6 in windows xp professional SP 2.
For that i have donwloaded the path_26.exe from those links. after extraction, i found 2 files one path26.exe and readme.txt

as per the text instructions and found the mentioned errors in braces. Since i encountered these errors i dint go ahead executing other commands. Please help me to solve this.

 CD C:\FPW26
      ATTRIB -r FOXPROW.EXE  ( ran successfully since no message is printed )
      ATTRIB -r FOXW2600.ESL  ( cannot find the esl file )
      PATCH26 FOXPROW.EXE  ( PATCH26: error : incorrect FoxPro 2.6a file size : C:\FPW26\foxprow.exe )

      PATCH26 FOXW2600.ESL
      ATTRIB +r FOXPROW.EXE
      ATTRIB +r FOXW2600.ESL


20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...