Xref: news2.mv.net comp.os.msdos.djgpp:5254 From: Ben Ashley Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro Blues Date: Fri, 21 Jun 96 21:01:50 GMT Organization: Flag Bearers Lines: 46 Message-ID: <835390910snz@flag.demon.co.uk> References: <835353042snz AT flag DOT demon DOT co DOT uk> Reply-To: Ben AT flag DOT demon DOT co DOT uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <835353042snz AT flag DOT demon DOT co DOT uk> Ben AT flag DOT demon DOT co DOT uk "Ben Ashley" writes: > Yup... me again... :) > > I am having some problems with allegro. I am running under Windows 95, using > RHIDE as the Editor. I seem to have an erratic bug. I am making some GUI > class libraries, and things seem to go wrong in my CApp constructor. This > class simply initializes the entire system, ready for use. It goes like this [My bit of code snipped] > Sometimes everything opens nice and correctly. Most mostly, ALLEGRO quits > with a GPF. From some testing, it seems to occur around the set_gfx_mode() > function. I am passing 'GFX_AUTODETECT, 640, 480' to the constructor which > then, as you can see gets put in the set_gfx_mode() function. > > Has anyone got any ideas? Well Ben... you were silly weren't you? haha! S'ok everyone. I know what he did wrong. He was the silly idiot who: a) forgot to check to see if a bitmap in memory was NULL before pasting back to the main screen, and even more stupidly.. b) forgot to assign font data properly... No wonder Allegro had a go at him!!! Slam him now!! Apologies to all who were about to spend lots of time helping him out by putting their heart and soul into a reply, only to be told, s'ok, I've figured it out.... erm... Shall I shut up now? -- Cheers, Ben -=Look for "Moo-Juice" on the IRC=- ---------------------====### legal notice ###====-------------------------- Microsoft Network is prohibited from redistributing this work in any form,in whole or in part. License to distribute this post is available to Microsoft for $499. Posting without permission constitutes an agreement to these terms.