Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* DCE manager code memory management
@ 1994-01-13 21:03 David McCowan
  1994-01-14 17:16 ` Seiichi Tatsukawa
  0 siblings, 1 reply; 2+ messages in thread
From: David McCowan @ 1994-01-13 21:03 UTC (permalink / raw)


Hi,

Does anyone have any idea how to prevent space allocated by the server stub
from being deallocated upon return of the RPC.

I am passing character strings from a DCE client to a DCE server.  The 
parameters in the IDL file have the "string" attribute.  Upon the server
returning from the RPC, I do NOT want the server to free the space allocated
by the server stub used to recreate the string on the server.  I tried using
the "heap" attribute in the ACF, but this does not seem to work.  The
documentation indicates that I can switch between the
rpc_ss_allocate/rpc_ss_free and the malloc/free memory management mechanisms.
There is no indicatation of this capability in the server.

Thanks,
Dave McCowan
dmcco@ctp.com
(617) 374-8334
-- 
---------------------------------------------------------------------------
David McCowan
Cambridge Technology Partners
dmcco@ctp.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DCE manager code memory management
  1994-01-13 21:03 DCE manager code memory management David McCowan
@ 1994-01-14 17:16 ` Seiichi Tatsukawa
  0 siblings, 0 replies; 2+ messages in thread
From: Seiichi Tatsukawa @ 1994-01-14 17:16 UTC (permalink / raw)


In article <1994Jan13.210309.24897@ctp.com> dmcco@ctp.com (David McCowan) writes:
>  The documentation indicates that I can switch between the
>rpc_ss_allocate/rpc_ss_free and the malloc/free memory management
>mechanisms.

Just call malloc() in your manager code and copy the passed
string into the allocated memory. Of course, the pointer to the
malloc'ed area needs to be stored into the global variable
protected by the mutex, or into the RPC context for the future
reference.

---  Seiichi
-- 

     + Seiichi Tatsukawa (^[$BN)@n@:0l^[(B) tatsu_s@apollo.hp.com +
     +      Hewlett-Packard/Open Systems Software Division        +


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-01-14 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-01-13 21:03 DCE manager code memory management David McCowan
1994-01-14 17:16 ` Seiichi Tatsukawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox