Hello,
Can anyone please explain me why this happens
It happens only when is it called a lot.

XIO:  fatal IO error 0 (Success) on X server ":0.1"
       after 3261 requests (3259 known processed) with 0 events remaining.

something with XCopyArea
it happens in this code

        XTextExtents(font,string,strlen(string),&dr,&far,&fdr,&or);
        bitmap=XCreatePixmap(dpy, window, or.width ,or.ascent, 
globana.param.xgwa.depth);
        if(!bitmap){
                printf("No Bitmap\n");
                XFreeFont(dpy,font);
                };
        gcv.foreground = 0xffffffL;
        gcv.function = GXcopy;
        gcv.font = font->fid;
        tmpgc = XCreateGC(globana.param.dpy, bitmap, 
GCForeground|GCFont|GCFunction, &gcv);
        XSetGraphicsExposures(globana.param.dpy,tmpgc,False);
        
XCopyArea(globana.param.dpy,globana.background.s,bitmap,tmpgc,x,y,or.width,or.ascent,0,0);
        XDrawString(globana.param.dpy,bitmap,tmpgc,0,or.ascent,string,strlen(string));
        
XCopyArea(globana.param.dpy,bitmap,globana.param.window,tmpgc,0,0,or.width,or.ascent,x,y);
        XFreePixmap(globana.param.dpy,bitmap);
        if(font) XFreeFont(globana.param.dpy,font);
        XFreeGC(globana.param.dpy,tmpgc);

it happens same if i use gc for font drawing and other to do copying.. same..
thanks

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to