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

    Copy memory buffer

    SDK Help
    0
    2
    206
    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 05/05/2006 at 03:19, xxxxxxxx wrote:

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

      ---------
      Hi,

      I am trying to copy a CPolygon buffer to another CPolygon buffer but I get crashes everytime I use it, or it doesn´t work.

      I tried CopyMem and also std::copy but none of them work (CopyMem crashes and std::copy has no effect). Is it that CPolygon cannot be copied?

      std::copy(poly, poly + d_pc, cp + pc);
      CopyMem(poly, cp + pc, sizeof(CPolygon) * d_pc);

      I need this urgently!!!
      Thanks i.a.
      Katachi

      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 05/05/2006 at 04:46, xxxxxxxx wrote:

        ok, worked. Had a logic error in it. 🙂

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