Mail Archives: djgpp/2000/02/24/14:28:15
Sahab Yazdani <beyonder69 AT geocities DOT com> 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). <string> 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.
- Raw text -