[SDL] I/O problem (stdio and stderr redirection to txt files)

Gerry trick at icculus.org
Mon Mar 21 21:18:21 PST 2005


David Olofson wrote:
> Another issue is that some platforms simply don't have a single 
> standard way of handling error messages. For example, "Un*x" has 

I've thought of making a minimal popup-box library that solves the GUI
toolkit problem by having several "toolkit drivers" and having the lib
trying to dynamically load each toolkit in turn, then pop up the box
once something inited successfully.

The advantages of this approach is that the main application wanting to
pop up these messages don't have to be linked to anything special, but
simply takes advantage of what's available on the system it's currently
being run at (ie no extra dependencies).  If nothing's available it
could print the message to stderr *and* log it to a file.

There's plenty of disadvantages as well, of course.  Need ability to
dynload, load code for several GUIs may be considered bloat, several
GUIs may be available and the selected one may not be user's choice (and
take time to load), etc, but I think this would be at least slightly
better than the alternatives I can think of at the moment.  Thoughts ?

- Gerry




More information about the SDL mailing list