www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/26/06:25:09

Xref: news2.mv.net comp.os.msdos.djgpp:5392
From: Shawn Hargreaves <slh100 AT york DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: alleg21 install_timer causes warning?
Date: Tue, 25 Jun 1996 21:27:31 +0100
Organization: The University of York, UK
Lines: 52
Message-ID: <Pine.SGI.3.91.960625183532.22010A-100000@tower.york.ac.uk>
NNTP-Posting-Host: tower.york.ac.uk
Mime-Version: 1.0
To: Seymour Shlien <seymour AT dgbt DOT doc DOT ca>
In-Reply-To: <4qooo5$p5f@crc-news.doc.ca>
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On 25 Jun 1996, Seymour Shlien wrote:

> Most of the example programs run very well on my system -- 486 66 Mhz 
> running on Windows 95. Several of the example programs (ex6, ex7, ex8, 
> ex9, ex13, ex14 and ex20) which I have tested cause Windows 95 to 
> place a warning box 
> 
> --------------------------------------------------------
> EX7 may not run well unless it is in MS-DOS mode. Would|
> you like to create a shortcut to this program that it  |
> will run in MS-DOS mode?                               |
> --------------------------------------------------------
> 
> I can ignore the warning box and resume the program. The program runs 
> well except that whenever a mouse cursor appears, it moves extremely 
> sluggishly when I move the mouse.
> 
> I noticed that all of these programs have the code install_timer() in 
> common. (The programs which run with no problem do not have this 
> function in the source code.)

I think this is an inevitable result of win95 not liking programs to 
speed up the timer. Since speeding up the timer is pretty essential to 
the way Allegro uses it (the standard 18.2 ticks a second is really 
pretty useless), I can't see any obvious way round the problem. The weird 
thing is that win95 does work with an accelerated timer, it just comes up 
with this warning. I think it is because win95 has problems with programs 
reading the elapsed time from the clock, and although I'm not doing that, 
as soon as it sees me messing with the clock settings it decides to warn 
you that all may not be well...

I don't know what could be causing the mouse slowdown problem. I've heard 
mention of it before, but it only seems to affect some machines, and 
without being able to reproduce it on a machine I have access to, there 
isn't much I can do about it. If anyone is experiencing this trouble and 
feels like trying to fix it, I can give you some pointers on where to look.

> Can anybody help me bypass this problem (which was also present in 
> alleg20 as well). It is preferable to not have to reboot the computer 
> into MS-DOS mode if possible. (I get a Load error: no DPMI. when I try 
> to run a DJGPP application.)

Download cwsdpmi from wherever you got djgpp, and put it in one of the 
directories in your path. That will let you run djgpp programs under DOS.


/*
 *	Shawn Hargreaves.        Why is 'phonetic' spelt with a ph?
 *	Check out Allegro and FED on http://www.york.ac.uk/~slh100/
 */


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019