Hi
I've got a problem with th fileSelector object :
here is a piece of code :
void positionXY_cb(FL_OBJECT *ob, long q)
{
Map * carte;
char *buffer;
carte=(Map *)ob->u_vdata;
buffer=strdup(fl_show_fselector("extraction","./","*.xy",""));
if (buffer!=NULL)
carte->loadPositionXY(buffer);
}
The problem appears when I try to use a Pixmap after having called
positionXY_cb().
This is the message I got :
"X Error of failed request: BadDrawable (invalid Pixmap or Window
parameter)
Major opcode of failed request: 53 (X_CreatePixmap)
Resource id in failed request: 0x700005d
Serial number of failed request: 2977
Current serial number in output stream: 3303"
another piece of code where i use the pixmap :
_image=XCreatePixmap(dpy,_map->get_win(),_cadre.w,_cadre.h,8);
if (_isSymbol)
{
fl_winset(_image);
fl_ovalf(0,_cadre.h,5,5,_color);
fl_winset(win);
}
does my problem come from the fl_winset() function ?
did I forget anything to do ?
thanks for any help...
Yann G.
_________________________________________________
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/