[Pipmak-Devel] errorMessage in pipmak_platform on UNIX
Status: Alpha
Brought to you by:
cwalther
From: Urs H. <ur...@an...> - 2005-07-16 11:00:09
|
In pipmak_windows.c and pipmak_macosx.m the function errorMessage displays a Box containing the message. Don't do this on UNIX platforms! Print the error message on the console (actually write them to the stderr stream): The reason why: This function is only needed for messages that occur before the graphical console is ready. On windows you have only to call a simple function from windows.h to display a dialogbox, which works in nearly every situation. On UNIX you have to connect to the x-server in order to display something like a message box. So it is a difficult and error prone way to get the message box (unlike in windows). SDL also connects to the x-server and initialises a window (and afterwards the graphical console can be used). If an error occurs because the window couldn't be initialised, trying to show a messageBox will fail too. Anyway, UNIX users like to have error messages printed to stderr. |