Linux MS DOS discussions
 help / color / mirror / Atom feed
From: Jonas Eckerman <jonas_lists@frukt.org>
To: linux-msdos@vger.kernel.org
Subject: Re: Runtime error 200 => How to slow down dosemu?
Date: Tue, 25 Apr 2006 17:09:24 +0200	[thread overview]
Message-ID: <444E3BA4.3080906@frukt.org> (raw)
In-Reply-To: <87bqut4amt.wl%felix.klee@inka.de>

Felix E. Klee wrote:

> When I try to execute a program named "retrieve.exe" in Freedos under
> Dosemu 1.2.2, then I get the error message "runtime error 200 at
> 001D:233A.".

That error means "Division by zero".

It is *sometimes* caused by a bad piece of timer initialisation combined with fast processors.

>   >tppatch retrieve.exe

IIRC that patch is only for programs compiled with Turbo/Borland Pascal AFAIK. It's possible that it only handles code using Borlands CRT unit as well.

Also, IIRC some patches for this problem simply replaced a value with a higher value rather than actually replace the bad code. The result was that the code worked for another couple of years, but eventually started failing again when CPUs became a lot faster.

Not sure if that was TPPatch or some other patcher.

> Well, since the runtime error is most likely due to a processor which is

I could be becuase of that, but it is entirely possible that the code tries to divide something by zero for some other reason as well.

> too fast, the only solution left seems to be throttling of Dosemu.

You don't need to slow down Dosemu, you need to slow down the buggy program.

I've got a small piece of code I call Bx200Fix.exe that usually works for this.
I don't know if attaches are ok on this list, so I just put it up for download from
<http://mmm.truls.org/j/>

Simply run it with the program you want to run as parameter. Like this:
bx200fix retrieve.exe
bx200fix retrieve.exe someparameter

If that doesnät work, run it like this instead:
bx200fix ?retrieve.exe
bx200fix ?retrieve.exe someparameter

Without the '?' it just tries to hide the problem when the app is starting, with the '?' it keeps doing it til the app exits.

It's just a quick hack and has at least one possible problem:
It does not copy the parameter data *exactly* to the program it calls.
Usually this doesn't matter though.

Use it if you like it. And you may distribute it anyway you like as well.

Regards
/Jonas


-- 
Jonas Eckerman, FSDB & Fruktträdet
http://whatever.frukt.org/
http://www.fsdb.org/
http://www.frukt.org/

-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2006-04-25 15:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-22 20:29 Runtime error 200 => How to slow down dosemu? Felix E. Klee
2006-04-25  5:09 ` John Coppens
2006-04-25 20:13   ` Felix E. Klee
2006-04-25 15:09 ` Jonas Eckerman [this message]
2006-04-25 20:09   ` Felix E. Klee
     [not found]     ` <444F3DC7.3060508@frukt.org>
2006-04-26 18:43       ` Felix E. Klee
2006-04-26 19:42         ` Felix E. Klee
2006-04-27 15:24           ` Mike McCarty
2006-04-25 19:59 ` Felix E. Klee
2006-04-25 21:14   ` Felix E. Klee
     [not found]     ` <32603e510604251425r24ef7662q395b00a6bb8f7144@mail.gmail.com>
2006-04-26  6:32       ` Felix E. Klee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=444E3BA4.3080906@frukt.org \
    --to=jonas_lists@frukt.org \
    --cc=jonas@frukt.org \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox