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

    Out of memory

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 477 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 10/08/2010 at 22:38, xxxxxxxx wrote:

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

      ---------
      Hello,

      i have a question to some restriction of the SDK. I created a plugin within i generate a huge list of structures with the gNew() command. And sometimes i don't get memory from cinema4d back. Only a short message dialog pop up with the hint "Out of memory". Is there a limitation in Cinema4D or is this limit from the operating system given?

      regards
      Marky71

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

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

        On 11/08/2010 at 03:10, xxxxxxxx wrote:

        What is your operating system? 32-bit systems only allow allocation of 2 GB RAM.

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

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

          On 11/08/2010 at 04:13, xxxxxxxx wrote:

          Yes, WindowsXP 32bit version.

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

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

            On 11/08/2010 at 10:12, xxxxxxxx wrote:

            If you are doing a large memory block allocation in one call then inherent memory segmentation may be an issue.  As you try to allocate a larger block the likelihood that such a large block is available contiguously decreases despite the fact that enough memory is available generally.  In this case you really need to do a rough precalculation of the size and segment the allocations (unfortunately).  Just because you have 2GB available doesn't mean that you can allocate a 2GB block in one swoop, for instance.

            As the case is with languages requiring developer memory management, you will need to balance the size of memory allocations so that you aren't allocating a million 128-byte blocks or one 128MB block.  Better to use a reasonable compromise, like 1-2MB.

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

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

              On 12/08/2010 at 02:49, xxxxxxxx wrote:

              And of course, use the debug console to find memory leaks (put a file named c4d_debug.txt in the current working directory).

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

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

                On 13/08/2010 at 00:21, xxxxxxxx wrote:

                thanks for the hints. I beliebe I have to recalculate the memory consumption.
                 
                I using the c4d_debug.txt to find memory leaks (this works).

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