www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/22/06:16:52

From: "B Gillhespy" <inbox AT magma DOT nospam DOT force9 DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro causes my program to crash?!
Date: Tue, 21 Jul 1998 19:08:56 +0100
Organization: Force 9 Internet
Lines: 48
Message-ID: <6p2l16$uu8@news3.force9.net>
References: <6ora6f$jnh AT magus DOT cs DOT utah DOT edu>
NNTP-Posting-Host: 72.usr03.shef.dialup.force9.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Michael Jara wrote in message <6ora6f$jnh AT magus DOT cs DOT utah DOT edu>...
>I'm writing a non-game with the assistance of Allegro, and I have
>found that it is definitely faster and more versatile than GRX 2.0
>(which I was using before).  However, since I converted everything to
>allegro, I've had a problem:
>
>Occasionally I send text to the printer, completely non-allegro
>related.  If the printer is not turned on (or otherwise not ready),
>windows alerts me of the fact and then my program crashes (windows
>says something about illegal operations and such).  This ONLY happens
>with allegro, it did not crash with GRX 2.0.
>
>Since then I have written some short test programs which duplicate the
>results.
>

<snipped to appease the fascists at Force9, my ISP>
>
>Any suggestions?
>--
>    _____   ___  ___  ___  ___  ______                                __
>   /     | /   ||   ||   |/  / |    __|      mjara AT eng DOT utah DOT edu       \ \
>  /      |/    ||   ||      /  |    _]  http://www.cs.utah.edu/~mjara  \ \
> /   /|        ||   ||       \ |   |____________________________________\ \
>/___/ |____/
__||___||___|\___\|___________________________________________\


I wouldn't know off the top of my head, but I expect that the Allegro
subsystem's grasp on your hardware probably mean that you can't use standard
io streams (including the Printer)

All I can suggest is that you shut down allegro, go into text mode, print,
then fire up allegro again.  The source code to the grabber shows you how to
do this properly.

Barry Gillhespy
The Allegro Games Depot...are you listed?
http://www.magma.force9.co.uk








- Raw text -


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