Messages.onErrorQuery

Prompts the user with Exit, Halt, show Stack trace or Proceed. This function is intended to be used for debugging use only. The following example shows how it can be used together with the g_log() functions. If Exit is selected, the application terminates with a call to _exit(0). If Stack trace is selected, g_on_error_stack_trace() is called. This invokes gdb, which attaches to the current process and shows a stack trace. The prompt is then shown again. If Proceed is selected, the function returns. This function may cause different actions on non-UNIX platforms.

class Messages
static
void
onErrorQuery
(
string prgName
)

Parameters

prgName string

the program name, needed by gdb for the Stack trace option. If prg_name is NULL, g_get_prgname() is called to get the program name (which will work correctly if gdk_init() or gtk_init() has been called)

Meta