THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/02/2004 at 00:17, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.500
Platform: Windows ;
Language(s) : C++ ;
---------
Hi
i have a Memory Leak problem with a generator i'm writing. The generator has a BaseLink in the Description. And in GetVirtualObjects i'm doing something like this:
GetVirtualObjects(...)
{
BaseObject\* linked = op->GetDataInstance()->GetLink(MYLINK,Obase,hh->GetDoc())
ModelingCommandData md
md.doc = hh->GetDoc()
md.op = linked
SendModelingCommand(md,CURRENT_STATE_TO_OBJECT);
BaseObject \* polygonized_linked = md.result1
// for debugging purpose free it at once
BaseObject::Free(polygonized_linked)
// for debugging purpose no changed to input objects
return GetAndCheckHierarchyClone(....)
}
The problem is that in a scene where "linked" points to a
SDS-Object a memory leak occured. It were only 24 bytes per
SendModelingCommand call. The DebugOutput said:
"OperatingSystem, 1136 -> 24Bytes"
I found this very odd. And i have no idea what is going on...
Appreciate any Help :-)