Message-ID: <38B5A578.75E5578F@geocities.com> From: Sahab Yazdani Organization: PheonixSoft Inc. X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: something wierd is going on... References: <38B3192A DOT F17E3572 AT geocities DOT com> <8909up$mbp$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <38B4508A DOT 754E1FFB AT geocities DOT com> <8934ua$bfk$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 60 Date: Thu, 24 Feb 2000 16:41:12 -0500 NNTP-Posting-Host: 209.103.48.232 X-Complaints-To: abuse AT sprint DOT ca X-Trace: newscontent-01.sprint.ca 951428829 209.103.48.232 (Thu, 24 Feb 2000 16:47:09 EST) NNTP-Posting-Date: Thu, 24 Feb 2000 16:47:09 EST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com thanks for the help that you have provided Hans, using your help and others who have posted back to me (on other newsgroups), I have been able to track the bug and eliminate it... You were right, it was the string constant thing. Thanks again for yours and others' help. I really appriciate it... Hans-Bernhard Broeker wrote: > > Sahab Yazdani wrote: > > the second problem is that since DrawString is a part of a class, > > showing you the source code would prove to be quite difficult (as people > > in the group might get mad). is filled with valid values using > > sprintf. > > You don't need to show us the whole source of the class. But we > definitely need at least *some*thing to look at, in order to be able > to help you. We're not psychic, see? Even the declaration of the > DrawString method might already be helpful. You're depriving yourself > of the more powerful help we might have to offer, if you don't show us > a minimal example case. Throw out everything in your program, until > you find a source code where every part of it seems to be necessary to > recreate the problem. If that source still seems too long for posting > it to the mailing list and newsgroup, you can still mail it to me or > maybe Eli, directly. > > > My own system is Windows 98 (not SE) and I've tried it on Pure DOS > > (CSWDMPI), Windows 95, Windows 95 OSR 2, a couple other Windows 98 and a > > Windows 98 SE. and only my own system works fine... > > This is getting curiouser and curiouser. From the above, the only > possible conclusion would be that it's some configuration difference > between your machine and those other ones. Things to watch out for > would mainly be the DOS box settings. Also check out if you have a > Win32 debugger hooked into the General Protection Fault handling > dialog. Is DrWatson running on your machine? > > > If it would help, the crash is a page fault and its a write error. > > I think that easily supports my initial suspicion that you've been > writing into a string constant. If you want to be extra sure, try > compiling with the -fwritable-strings, once, and see if the executable > you get from that still crashes, on those other machines. > > > I have tried symifying, but its really hard to tell what works and > > what doesn't when you can't check it on your own computer. > > Even if you can't make anything out of it, please *do* send in the > symified dump. Chances are one of the experts around here will be able > to spot things you didn't. > -- > Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) > Even if all the snow were burnt, ashes would remain. -- *********************************************************** * Sahab Yazdani * "We are all who we are, no more and no * * Thornhill S.S * less" - al'Lan Mandragoran * *********************************************************** * http://pheonixware.8m.com/ * ***********************************************************