Hello,
There seems to be a problem with fl_get_filename() under v0.86. If one calls
the function before fl_show_fileselector(), xforms core dumps. This does not
happen with v0.81. The code below will show the error. I did not try the
other functions (fl_get_directory(), etc).
Also, there seems to be a bit of inconsistency with return values of fselector.
If I choose Cancel, NULL is returned but if I choose Ready without selecting
a file, "" is returned. It would be nice if NULL was returned in this case
too...
-bob mallozzi
const char *t;
const char *temp;
/* OK with v0.81; seg fault with v0.86 */
t = fl_get_filename();
if (t == NULL)
printf("t = NULL\n");
else
printf("t = %s\n", t);
temp = fl_show_fselector("Enter filename:", ".", "*", "");
if (temp == NULL)
return;
else
printf("File = %s\n", temp);
t = fl_get_filename();
if (t == NULL)
printf("t = NULL\n");
else
printf("t = %s\n", t);
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/