From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: gdb problem or just silly me - please help Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <39047BEE DOT 306C88F AT jps DOT net> <3906A13F DOT 4A2BB361 AT is DOT elta DOT co DOT il> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 33 X-Trace: /bV2/6/4ApvbVFiJaK5HBVI9F5TLZPpMrJOpL7As/g4gQhHL7WdmFAr8Xv2fTflpsX5qiHzpt+mh!Ai1Xk9XeFtsPRTKwAHZkbgN2gTVfWZp/g9JzTtRbCZWf32Xm8ltvP0P8FTe6sigiBjPA9/+mrcZ/!r1mJXvY= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Wed, 26 Apr 2000 14:11:59 GMT Distribution: world Date: Wed, 26 Apr 2000 14:11:59 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 26 Apr 2000 09:56:47 +0200, Eli Zaretskii wrote: >Damian Yerrick wrote: >> >> On Tue, 25 Apr 2000 11:25:19 +0200 (IST), Eli Zaretskii >> wrote: >> >> >There's nothing wrong with printf debugging >> >> Unless the printf() family function itself crashes the program. This >> happens to me all the time when porting Allegro programs from DJGPP to >> Windows, as DirectX is somewhat finicky about when the screen can be >> drawn on. > >This simply means that you need to use another function, not the literal >printf, but the principles remain the same. For example, when debugging code >that cannot stand a DOS call, I use cprintf or cputs instead of printf. That's what I meant when I said "printf() family function." In Allegro, I would normally use textprintf(), but any drawing to the screen under Windows involves calls to DirectX. To put it another way, what if DOS required video memory to be "acquired" before it could be drawn on, and it put a mutex lock on all input until the program "released" the video memory? -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/