[comp.windows.x] Help requested on Image manipulation

(Shyam Kotha ) (10/26/90)

Dear Xperts,
     I had recently started working on X Windows (Open Look). I was trying the
Image functions, the problem is I am able to paint the window at the initializa-
tion through canvas_repaint procedure, but when I try to put the image in the
window from another routine which I can invoke through a button I get core dump.
In the program that paints the window, what I was doing was create an image
load the data field with data and use the XPutImage. It works when I do this in
canvas_repaint procedure, but not any where else. I tried to Initialize the
window through the canvas_repaint and change the image through XCopyArea and
got a core dump. I am kinda confused here. Can some one please tell me what
I am doing wrong?
		Thanks in advance.


	Sam
	sam@ee.fit.edu