On 28/04/2013 at 20:01, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform:
Language(s) : C++ ;
---------
Hello
This maybe more of a C++ than C4D SDK question but gNew is from the SDK, so....
I use gNew to get a pointer to some memory for a buffer in a function. This function also populates the buffer. How long will that buffer be mine? Will it expire when I leave the function or stick around until it gets gDelete?
Right now I have the gNew in one function which gets called by another function where the gDelete is. And I know this is baaaad.
Peter