Hi I have also encountered this error. It seems to occur if you use the Clear or ClearRect methods on a vMemoryDC. I don't know enough about X to correct the problem. Until a fix is available I conditionally compile with a workaround. (draw a rectangle in the background color...) Csaba Halasz PS> Of course I could be missing something. If so please correct me.