<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 opens and allows the user to type in / select a filename). But there is also the following output at the terminal:<br><br> [...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;"> 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;"> 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;"> hello there2! dialog completed</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;"> 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;"> 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> GtkWidget* dialog = NULL;<br> gchar* filename = NULL;<br><br> g_assert(app != NULL);<br><br> g_print("runFileChooser2: invoked!\n");<br><br> dialog = hildon_file_chooser_dialog_new(GTK_WINDOW(app->window), style);<br><br> gtk_widget_show_all(GTK_WIDGET(dialog));<br><br> g_print(" running dialog\n");<br> if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK)
{<br> g_print(" hello there1!");<br> filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));<br> g_print(" hello there2!");<br> }<br><br> g_print(" dialog completed\n");<br> gtk_widget_destroy(dialog);<br><br> if (filename != NULL) {<br> g_print(" user selected filename '%s'\n", filename);<br> } else
{<br> g_print(" user didn't select any filename\n");<br> }<br><br> 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>