On Tue, 29 Jun 2004, Alexander Darovsky wrote: > On Monday 28 June 2004 23:40, Mark Vojkovich wrote: > > Sortof. There's this one: > > > > http://www.xfree86.org/~mvojkovi/restest.c > > > > but you have to be careful using it. You should either run it > > remotely or redirect output to a file "restest >& test.out". It > > grabs the X-server and also dumps data to stout so if the > > application displaying stdout is running on the same server (like > > xterm can be) there is a deadlock. > > > > Mark. > > > > On Mon, 28 Jun 2004, Alexander Darovsky wrote: > > > Hi. > > Thank You very much. I tested my app with this tool, and found > very interesting issue: pixmaps are still reside on the server, despite > of XFreePixmap() call. Calls are surely made, this is traced with ethereal, > which shows, that pixmaps are really destroyed, and no error comes back, > that means that pixmap id's are correct also. But when I create/destroy > pixmaps, restest shows that these aren't freed by the X server. In the docs > I have seen that pixmap is destroyed only when no references are left. > Maybe it is possible to see who owns that pixmaps and doesn't allow them > to be freed... If you call XFreePixmap() the "resource" is freed and the X-Resource extension (which restest uses) should no longer report it. It is true that the pixmap data stays around if it is still being used (as a window background for example), but the Pixmap ID is no longer valid at that point and it is not a reportable X resource. Are you saying that the PIXMAP count in restest does not go down after freeing the pixmap? If you only see that after creating half a million pixmaps you might have found an XFree86 bug, but if you see this for a single pixmap, I think you have a bug in your program, because nobody else sees problems like that. Mark. > > _______________________________________________ > > XFree86 mailing list > > XFree86@xxxxxxxxxxx > > http://XFree86.Org/mailman/listinfo/xfree86 > _______________________________________________ XFree86 mailing list XFree86@xxxxxxxxxxx http://XFree86.Org/mailman/listinfo/xfree86