Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Memory Manage..'Placement New' references

    SDK Help
    0
    2
    207
    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
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 20/09/2005 at 11:14, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.503 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Can anyone recommend a good reference book to C++ 'placement new' - for handling class object allocations into a memory pool?

      Would be great if the reference was a more generalized Memory Management treatise.

      <Cough>Java</cough> ;0)

      I'll tell you, dealing with transient arrays, persistent arrays, arrays of classes (both transient and persistent), plugin objects, Cinema 4D objects, etc., etc., etc., it is impossible to avoid memory fragmentation. Bad enough if this was an independent executable, but a dll plugin running in another application where objects are going and coming constantly during processing. Ugggg.. Again - I (and you) shouldn't be charged with the management of memory - this should all be handled by the OS or subsystems. When will they learn... 😞

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 23/09/2005 at 04:47, xxxxxxxx wrote:

        Found an excellent reference, "Memory as a Programming Concept in C and C++" by Frantisek Franek. Almost missed it! Went through the C++ section of my local MicroCenter book section (probably one of the best computer and related bookstores in the state) several times and, lo and behold, stuffed back, tucked away, there it was.

        Problem is that a search of "C++ memory management" on Amazon shows that almost all of the good, relevant books are 'Out of Print'! What can I say, I jumped ship, after moving from C to C++, right to Java during that period when the C++ standard was being solidified (C99).

        Now I have several game plans to eradicate memory fragmentation and reduce memory usage. 🙂

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