home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!darwin.sura.net!dtix!mimsy!prometheus!media!arthur
- From: arthur@media.uucp (Art Poley)
- Newsgroups: comp.windows.x
- Subject: X11/R4 Shared Memory Extensions -- Server Error
- Message-ID: <1992Sep10.165540.18373@media.uucp>
- Date: 10 Sep 92 16:55:40 GMT
- Organization: Media Cybernetics, Inc.
- Lines: 41
-
- I've recently encountered an X Error while using the Shared Memory extensions.
- The message is as follows:
-
-
- X Error of failed request: BadAccess (attempt to access private resource denied)
- Major opcode of failed request: 129 (MIT-SHM)
- Minor opcode of failed request: 1 (X_ShmAttach)
- Serial Number of failed request: 12615
- Current serial number in output stream: 12642
-
-
- Briefly, the approach is as follows:
-
- image = XShmCreateImage()
-
- shminfo->shmid = shmget(IPC_PRIVATE, image->bytes_per_line * image->height, IPC_CREAT|0777);
- if(shminfo->shmid > 0)
- {
- shminfo->shmaddr = image->data = shmat(shminfo->shmid, 0, 0);
- if(shminfo->shmaddr != ((char *)-1))
- {
- shminfo->readOnly = False;
- XShmAttach(display, shminfo);
- }
- }
-
-
- The code above would not do a XShmAttach if creation or attachment to the
- segment fails. Therefore, why is the XShmAttach causing a server error
- every so often? If anyone has encountered this before I'd appreciate
- your feedback.
-
-
-
- Thanks in advance,
-
- Art Poley
- --
- --------------------------------------------------------------------------
- Art Poley - S & S Inficon Phone: (301)975-0728 (9655 FAX)
- Internet: arthur%media@uunet.uu.net UUCP: {uunet,hqda-ai}!media!arthur
-