Mail Archives: djgpp/1998/02/22/17:47:09
From: | "Daniel Nilsson" <daniel7 AT algonet DOT se>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Allegro programs that crashes win95
|
Date: | 22 Feb 1998 22:08:02 GMT
|
Organization: | Algonet/Tninet
|
Lines: | 39
|
Message-ID: | <01bd3fde$84ca9340$0100007b@Strider>
|
NNTP-Posting-Host: | du200-250.ppp.algonet.se
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I have a problem with allegro programs, some make windows crash.
You can read more about it in my previous posting.
Now I think I have come a bit closer to the cause of the crash.
I have made a very simple program that plays a sample, like this:
while (!kbhit ()) {
play_sample (sample, 255, 128, 1000, FALSE);
for (z = 0; z < SLEEP_CNT; z++)
;
}
It works just fine, but this does not:
while (!kbhit ()) {
play_sample (sample, 255, 128, 1000, FALSE);
rest (DELAY);
}
The first one does not use the timer, but the second one does. I have also
tested the example program that uses only the timer part of allegro, and it
works fine. So the problem is the combination between sound and timer!
The error message I get is that ugly blue screen and it say (translated
from swedish):
serious exception 0D at ...
I've got a p166MMX, 64mb SDRAM, a soundblaster awe 64, allegro 3.0, windows
95b (swedish).
It would be kind if you answer by e-mail.
Some programs I've tested:
the 1:st example abowe ok
the 2:nd example abowe allways crashes after a few seconds
grabber crashes sometimes
one of my progs (uses grafix, keyboard) ok
another of my progs (grafix, mouse, timer) ok
a 3d sound program I found at http://www.ozemail.com.au/~coonsta/sound.html
(grafix, sound, timer, I think) crashes
--
/ Daniel Nilsson
- Raw text -