Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!news.cs.indiana.edu!ariel.unm.edu!nmsu!opus!newberry From: newberry@nmsu.edu (Jeff Newberry) Newsgroups: comp.windows.x Subject: Xview is not handling NoExpose events Message-ID: Date: 28 May 91 15:57:04 GMT Sender: news@NMSU.Edu Distribution: comp Organization: Computing Research Lab Lines: 31 Hello, I hope this is the right news group to be asking. If it is not, would someone let me know which news group I should have sent it to. Also, if anyone has any other suggestions as to where to post this question, it would be greatly appreciated. I have an Xview program which has been allocating so much memory that it blows up after running for a while. The program has a panel with some buttons on it. The repaint procedure for the panel just copies a pixmap to the panel using XCopyArea. The program is in a long loop which iterates through each day of the year, copying the modified pixmap at the end of each day. The problem is the following. XCopyArea generates a NoExpose event when the area it is copying to is totally exposed (no other windows are hiding any part of the panel). These NoExpose events are placed on the event queue and never taken off. The queue just keeps getting bigger and bigger and ... etc. Finally, the program tries to allocate more space when there is no more, and KABOOM. I've looked through the Xview manual, trying to find any comment about NoExpose events. They mention Expose and GraphicsExpose events, but they do not mention NoExpose events. Why isn't Xview getting rid of those NoExpose events? Any ideas? Jeff Newberry Computing Research Lab New Mexico State University newberry@nmsu.edu