THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/01/2011 at 19:19, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.111
Platform: Mac ; Mac OSX ;
Language(s) : C++ ;
---------
Howdy,
I'm not really sure about this, but there is something strange going on here.
I'm developing and testing my plugin in R10.111, and my work flow is: compile, start Cinema 4D, import a file, check the result, quit Cinema 4D and then repeat several times throughout the day. But the further along I go, the longer it takes for the Mac OS file selector dialog to pop up after selecting my import command. When I first boot the computer, load Cinema 4D and select my import command the file selector dialog pops up immediately, but as the work progresses through the day it begins to delay more and more. If I reboot the machine, the file selector dialog comes up immediately again.
The only thing I've noticed is that when I run Activity Monitor, I notice that the "Inactive" memory keeps increasing every time I start and quit Cinema 4D, and test my import command. I have the "c4d_debug.txt" file in the root directory of Cinema 4D, but it hasn't reported any memory leaks.
Does this situation indicate a memory leak?
I am using std::vector to keep track of the nodes imported and I'm freeing up the memory like this:
while(nodeList.size() > 0)
{
delete(nodeList.back());
nodeList.pop_back();
}
nodeList.clear();
... is this the proper way to free up the memory used by the std::vector? The "nodeList" is storing a list of structures that hold information about the nodes.
Adios,
Cactus Dan