Mail Archives: djgpp/1998/07/22/06:16:52
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 -