rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (11/03/88)
I am trying to write a program that copies an offscreen pixmap to a window. A sample of the code follows... .... My problem is each time I run this program, I get the same pixel map from the previous run. It seems like XFreePixmap is not freeing up the memory. Can anyone give me a hint? Can you give me a better description of what you think the problem is? What do you mean by "same pixel map", and how is "same" bad? You do know that the initial contents of a pixmap are undefined, right? So, a server is certainly allowed to keep handing you back the same piece of off-screen memory, with the same contents that you left there from the previous pixmap. Is that what you think the problem is? If so, you simply need to make sure you initialize the pixmap to whatever is appropriate for your application.