DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR Pending] Link: http://www.fltk.org/str.php?L2760 Version: 2.0-current On Thu, 3 Nov 2011 06:13:26 -0700 (PDT), Ben wrote: >Ah, okay. I see what you mean now. Perhaps you might need to avoid the >"return" statement you have with "if (!filename_exists(...))"? static void chooser_cb(const char *cs) { if(cs == NULL || *cs == 0) return; if( !filename_exist(cs)) { alert("%s\n%s", FILE_NOT_FOUND_s,cs); return; } if( filename_isdir(cs)) return; (...) reader = fopen(cs, "rb"); if(reader == NULL) { perror(dbuf); alert("%s\n%s", CANNOT_OPEN_FILE_s, cs); return; } read_idf = strdup(cs); image_load(reader, read_idf); } }/* chooser_cb() */ When I avoid the "return" statement, chooser_cb fails at fopen(). winfried Link: http://www.fltk.org/str.php?L2760 Version: 2.0-current _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
