Hello, I need some Help and Direction.
I am getting CrtIsValidHeapPointer when I am returning from Server function . here's my idl definition
I have an RPC implelemtation where client calls mgg_invalid and it populates msg and returns back to client.
void mgg_invl(
[
in] CONTEXT_HANDLE hContext,
[
out,size_is(,80)] char **msg);
and my Client implemenation
*msg = (char
*) midl_user_allocate(80*sizeof(char))
but this always give me a run time error , that using variable before initialize
so i added
msg = (char **) malloc(char);
and that compiled and ran but now i am getting Heap error
thanks