The console opens, then the application displays the text (which may have been obvious). By default, the application displays text, then an error occurs. Use g_set_printerr_handler () to change this behavior (to display an error dialog box, write to a file, or whatever).
source share