memory leak VS crash
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/10/2010 at 12:14, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform:
Language(s) : C++ ;---------
Hi there,i am facing a problem here and dont find the solution. i create a spline object _spline and an extrude object _extrude where i put _spline->InsertUnderLast(_extrude).. now i create a connect object called _connect and insert _extrude under it.
the connect object is inserted into the document and everything works fine. now i wanted to take the next step and call the MCOMMAND_CURRENTSTATETOOBJECT like its done in the sdk help.. this works fine, too, and i return res to the document instead of _connect. but i get a bunch of memory leaks. so i use blDelete(_connect) which works fine and i get less memory leak messages. but as soon as i try to free _extrude or _spline the plugin crashes. i have no idea what i can do to get rid of the last memory leaks.
any ideas are welcome, thanks in advance
cheers,
ello