Some question on RPC Memory allocation
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello all, by refering to article http://www.codeproject.com/internet/rpcintro1.asp, i was wondering if i allocate an memory at server side, the return the pointer. // Server function. const char* Server::Output() { m_pVar = new char[1024]; return m_pVar } m_pVar is Server class member. Server will delete m_pVar in its destructor. However, may I know once the Client receive the pointer, // Client code const char* m_pClientPointer = Output(); does client need to perform deletion on m_pClientPointer? Thank you!