When I attempt an installation of an application in MS-DOS, I receive the following error: "Divide Overflow." What is the meaning of this error and how do I fix it?

The install procedure is:

  1. Partition my HDD
  2. Format C drive
  3. Install MS-DOS 4 Add the flowing lines to config.sys

    DEVICE=C:\DOS\RAMDRIVE.SYS 6000 512 64 /e
  4. Insert my floppy application and then restart

It works properly the Virtual machine Q emulator but I receive a "Divide Overflow" error on the real machine (Vectra HP PC).

  • There is probably a timing loop somewhere in the code, and your new[er] machine is way faster than it ever expected, generating a divide-by-zero error. What application is it? Do you have the source code? – Cody Gray Aug 17 '14 at 9:27

You have a lot of options.

  1. FreeDOS:Instead of installing MsDos, install that one
  2. Emulator on the machine: Istead of installing it on a virtual machine, do it on the real one.
  3. DosBOX: Istead of using Q emulator, use DosBOX, multi-platform, and works like a charm on any machine.

I'm not sure how old this system is, but it may have subtle incompatibilites in the chipset that cause it not to really be compatible with DOS or all DOS applications. It's also possible there's a newer CPU feature that is causing an issue. It could be that the application is doing something weird with invalid instructions

Try going into the BIOS and disabling any extended CPU features, any caching, and any onboard hardware that you don't need for this application.

  • i should tell to you i use 486 and pentium 2 main board ... – repozitor Apr 9 '12 at 17:58
  • @repozitor, and it fails on both? I know that 200MHz P2’s and up were too fast and needed to be slowed down via software. – Synetech Sep 1 '12 at 21:24

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.