On 23/04/13 17:46, Paul Ramsey wrote: > Yes, you have to be in the memory context you want the allocated memory to live in. +1 from me. To the best of my knowledge, all of the p*() memory functions will allocate their memory in the current context. ATB, Mark.