Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    memory leak VS crash

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 129 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post