pfNewString memory allocation

New Message Reply Date view Thread view Subject view Author view

Pat Stevenson (pstevens++at++dw3f.ess.harris.com)
Fri, 15 Dec 1995 09:17:58 -0500


Hi,
I am trying to use pfNewString() and pfGetSharedArena() to initialize new
strings like this:

str=pfNewString(pfGetSharedArena());

I am using Performer 2.0. pfGetSharedArenaSize() reports that the full default
256MB size is allocated(well, available) and statements like the above are in
several places throughout the program. Tracing through, they execute without a
hitch until a certain place in one of my constructors(I am using C++). Anyway,
when I change the statement to use the heap like this:

str=pfNewString(NULL);

It works. Question, am I using the shared memory arena correctly and/or is
there a way to get the current size/state of the shared memory arena so as to
avoid a core dump during the call to pfNewString()? It does occur during the
_amalloc assembly call embedded into pfNewString().

Thanks for any help.

Pat Stevenson
Harris Corp., ISD
gstevens++at++harris.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:09 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.