Re: [XFree86] XShmSegmentInfo issues

2003-12-05 Thread Mark Vojkovich
On Thu, 4 Dec 2003, Callum Prentice wrote: I think you've misinterpreted this. Aside from corruption of the ximage data structure, the only time BadValue is returned is if your source rectangle passed to XShmPutImage lies outside of the XImage (or if you pass junk for the send_event).

Re: [XFree86] XShmSegmentInfo issues

2003-12-05 Thread Callum Prentice
that's the conclusion i came to late last night too. now, for each of my XImage helper class instances, i declare a XShmSegmentInfo* in the ctor and point it to a new'd buffer so it hangs until the class dtor gets rid of it as my app is ending. seems to work okay for now. Looking through

[XFree86] XShmSegmentInfo issues

2003-12-04 Thread Callum Prentice
i have a methods in a class to create a shared memory x image - it creates and stores an xImage in the usual way: XShmSegmentInfo shminfo; ximage = XShmCreateImage(..., shminfo); shminfo.shmid = shmget (.., ximage-height * ximage-bytes_per_line, ...); shminfo.shmaddr = ximage-data =

Re: [XFree86] XShmSegmentInfo issues

2003-12-04 Thread Mark Vojkovich
On Thu, 4 Dec 2003, Callum Prentice wrote: i have a methods in a class to create a shared memory x image - it creates and stores an xImage in the usual way: XShmSegmentInfo shminfo; ximage = XShmCreateImage(..., shminfo); shminfo.shmid = shmget (.., ximage-height * ximage-bytes_per_line,

Re: [XFree86] XShmSegmentInfo issues

2003-12-04 Thread Callum Prentice
I think you've misinterpreted this. Aside from corruption of the ximage data structure, the only time BadValue is returned is if your source rectangle passed to XShmPutImage lies outside of the XImage (or if you pass junk for the send_event). Check your dimensions passed to XShmPutImage.