Jay Gischer (gischer++at++puget.engr.sgi.com)
Tue, 28 Apr 1998 09:05:55 -0700 (PDT)
I don't think that pointers work too well with shared memory here.
If the Console's were allocated from shared memory, their addresses
will possibly change from process to process. If they weren't the
memory won't even be there in a different process.
If in fact the Console structures are to be shared, it would be better
to do:
typedef structure {
...
Console console[10];
...
} SharedData;
and then
SharedData *sd = (SharedData *)pfMalloc(sizeof(SharedData),pfGetSharedArena);
sd->console[0] = *new Console(whatever);
// This way the console data is sure to be in shared memory too.
// There are other ways to cope with this
> I am using "CC" to compile and "cc" to link the object programs on IRIX
> 6.2 Indy.
>
If it were me, I'd try to use "CC" to link as well. I don't know if it's the
cause of any of your problems.
-j
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:18 PDT