PreviousNext

rpc_ss_enable_allocate(3rpc)

Enables the allocation of memory by the rpc_ss_allocate( ) routine when not in manager code

Used by client applications.

Synopsis

#include <dce/rpc.h>

void rpc_ss_enable_allocate(void);

Description
In sophisticated servers, it may be necessary to call manager code routines from different environments. This occurs, for example, when the application is both a client and a server of the same interface. Therefore, a manager code routine may need to be called both by the application code and by the stub code. If code, other than manager code, calls the rpc_ss_allocate( ) routine, it must first call rpc_ss_enable_allocate( ) to initialize the memory management environment that rpc_ss_allocate( ) uses.

For information about rules for using memory management routines, see the OSF DCE Application Development Guide - Core Components.

Return Values
An exception, rpc_x_no_memory, when there is insufficient memory available to set up necessary data structures.

Errors

A representative list of errors that might be returned is not shown here. Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages.

Related Information
Functions: rpc_ss_allocate(3rpc)

rpc_ss_disable_allocate(3rpc)

Books: OSF DCE Application Development Guide - Core Components