<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hello,<br><br>I am writing a basic file read / write program and testing it in Maemo SDK. <br>The part of the program that opens and reads a file works fine. The program is also able to ask the user to select a file to save to (the Save dialog&nbsp; opens and allows the user to type in / select a filename). But there is also the following output at the terminal:<br><br>&nbsp;[...output omitted ...]<br><font size="2"><span style="font-family: courier,monaco,monospace,sans-serif;">cbActionSave invoked</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">runFileChooser2: invoked!</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">&nbsp;running dialog</span><br style="font-family:
 courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">application[16448]: GLIB WARNING ** hildon-fm - Failed to create monitor for path file:///home/sana/MyDocs/.camera</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">application[16448]: GLIB WARNING ** hildon-fm - error accessing 'file:///home/sana/MyDocs/.camera': File not found</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">application[16448]: GLIB CRITICAL ** default - make_child_uri: assertion `uri != NULL' failed</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">application[16448]: GLIB CRITICAL ** GLib-GIO - g_file_new_for_commandline_arg: assertion `arg != NULL' failed</span><br style="font-family:
 courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">&nbsp;hello there1!application[16448]: GLIB CRITICAL ** default - make_child_uri: assertion `uri != NULL' failed</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">application[16448]: GLIB CRITICAL ** GLib-GIO - g_file_new_for_commandline_arg: assertion `arg != NULL' failed</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">&nbsp;hello there2! dialog completed</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">&nbsp;user didn't select any filename</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">&nbsp;you didn't choose a filename to
 save to</span></font><br><br><br>The code for the function is fairly standard:<br><font style="font-family: courier,monaco,monospace,sans-serif;" size="2">static gchar* runFileChooser2(ApplicationState* app, GtkFileChooserAction style) {<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GtkWidget* dialog = NULL;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gchar* filename = NULL;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g_assert(app != NULL);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g_print("runFileChooser2: invoked!\n");<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dialog = hildon_file_chooser_dialog_new(GTK_WINDOW(app-&gt;window), style);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gtk_widget_show_all(GTK_WIDGET(dialog));<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g_print(" running dialog\n");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK)
 {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g_print(" hello there1!");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g_print(" hello there2!");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g_print(" dialog completed\n");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gtk_widget_destroy(dialog);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (filename != NULL) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g_print(" user selected filename '%s'\n", filename);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else
 {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g_print(" user didn't select any filename\n");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return filename;<br>}</font><br><br>I am new to Maemo, and I am not sure what the problem is here... any ideas about how to go about solving this problem?<br><br>Thanks,<br><br></td></tr></table><br>