On Mon, Jun 15, 2009 at 3:24 PM, Christian Ohm<chr....@gmx.net> wrote: > On Monday, 15 June 2009 at 0:40, bugs buggy wrote: >> In order to alleviate this as much as possible, I have modified the >> crash handler dump file to spit out the openAL & openGL vendor/version >> strings. > > I was thinking about how to handle that in a nice way with C strings, but just > using C++ strings is of course nicer.
You should not allocate anything on the heap in a crash handler. Make sure all buffers are allocated in advanced and just fill them in C-style. >> All these things can't be added to the crash dump file with the >> addDumpInfo(), since that will remember the last settings as well, (as >> in, they play X map, we store X map, they play Y map, we have X map >> and Y map in stream...) will have to have another section, and clear >> the stream first, then add everything again, unless someone can think >> of another way? > > Just keep everything? Sometimes a crash happens because of remaining crap from > an old map. Gives at least some of the history, and not only the momentary > snapshot we get now. Wrong information can be worse than no information. - Per _______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev