[SDL] Fullscreen crushing.
Ricardo Cruz
rpmcruz at clix.pt
Thu Jan 5 16:50:00 PST 2006
Personally, I think a better solution is to just use "fprintf(stderr, ...)"
or "std::cerr" and then "progname 2> log", since it allows you to define the
log filename from the command-line or even just let it be displayed on
screen. It's also faster and easier to implement.
Just my 2 cents,
Ricardo
Em Quinta, 5 de Janeiro de 2006 21:38, o Alan Wolfe escreveu:
> What i like to do is make a function that i pass text to. The function
> opens a file, writes the text, then closes the file (thus saving the file
> changes, very important because if it crashes before you close the file,
> you may be missing text from the log that should be there, which makes it
> useless).
>
> In my code, when im having crashing or preformance problems etc like this,
> i make it output stuff to the log file in various places in the code.
>
> Then, I run the program and when it's done (i killed it, it crashed,
> whatever) i look at the log file and see what the last thing it said was.
>
> If i need more info, i put more output between the last thing it reported
> and the next thing it should have reported and i keep going in finer and
> finer detail until i find the line of code causing all the problems.
>
> Works really good for me (:
>
--
The Fifth Rule:
You have taken yourself too seriously.
More information about the SDL
mailing list