[comp.windows.x] Using IPC w/X

hildjj@modal375.me.vt.EDU (Joe Hildebrand) (04/17/91)

> This is the part of the code of an application using ipc mechanisms 
> and X11 protocol.

> The application crashes on almost every functions started in the case 
> (sooner or later ...) and it crashes on XtDispatchEvent.

> We have been searching for many days if it was a problem of memory 
> allocation or strange pointers but it doesn't seem to be this kind of things.

I had a MAJOR problem getting an X client that uses shared memory to work.  It
seemed that I was running out of memory very quickly.  What we did to fix it
(warning: major kludge) was to allocate as much memory as we thought we were
going to need (in our case, approx 3 Megs), then attach to shared memory, then
free the previously allocated huge chunk o' memory.  This works, but I keep 
waiting for it to bite my ass one day.

My symptoms sound similar to yours, but, ...

If anyone has an idea how to better solve this problem, PLEASE let me know.
This program is for the control of a robotic manipulator, and if it crashes,
well, zillions of dollars of hardware are down the tubes.

TIA,
Joe

\\    //------
 \\  //   ||     All opinions are my own,
  \\//    ||     -rw-r--r--   1 hildjj   users     2048 Mar 215 08:59 opinions
   --     
Joe Hildebrand  [hildjj@modal375.me.vt.edu (128.173.5.186)]
Virginia Tech Department of Mechanical Engineering
Blacksburg, VA
and
Babcock & Wilcox Nuclear Services, Lynchburg, VA
(804)847-3953