THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/06/2012 at 10:27, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform:
Language(s) : C++ ;
---------
I've searched through the archives for info on this. But I couldn't find anything related to what I'm doing.
I'm creating a GeDynamicArray inside of my InitValues() function in a GeDialog plugin. So that the contents of this array are available when the plugin opens. But I don't know where to put the destructor for this array.
I can't put it inside Init because that just wipes out the data as soon as it's added.
And I also tried putting the destructor in the dialog's destructor like this:
myDialog::~myDialog(void)
{
myArray.~GeDynamicArray(); //Destructor to free any memory used by the array
GeFree(dlg);
}
But it doesn't work.
I'm wondering if I have to create the array as a GeDialog class member in order to be able to destruct it when the plugin closes?
-ScottA