On 04/02/2014 at 11:33, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R15
Platform: Windows ;
Language(s) : C++ ;
---------
I have created a command plugin which creates a dialog and some objects.
When I close cinema when the plugin is open, cinema crashes.
It is ok when I close the plugin before closing cinema 4d.
Could it be, because I allocate objects, but never "free" thems?
If so, where and what to free?
Or is main.cpp important? I almost commented out everything.
Note: The plugin works fine.
BaseObject* sphere = BaseObject::Alloc(Osphere);
sphere->SetName("Alloc test");
doc->InsertObject(sphere, nullptr, nullptr);