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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Access violation in MkVarTag

    Scheduled Pinned Locked Moved Bugs
    4 Posts 0 Posters 1.1k 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 12/06/2003 at 20:04, xxxxxxxx wrote:

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

      ---------
      op = PolygonObject::Alloc(vcount,fcount); (998,1515)
      if(!op) return 0;
      uvtag = (UVWTag* )op->MakeVariableTag(vtcount); (998)
      if(!uvtag) return 0;

      The forth time I create an object I get a 'unhandled exception in Cinema4D.exe Access Violation' error in the MakeVariableTag call. I'm only creating one UVtag per object at this point.

      What would prevent me from making a call with a valid PolygonObject? I would expect it would at worst return null.

      I'm having a similar problem with the ResizeObject. When I resize the third object I get the same error and then the Access error on trying to make the UV tag on the fourth if I comment out the resize call.

      I have 1.5 G memory on this box now.

      What would cause these types of problems (not at all assuming it's the app code and not me)?

      Thanks,
      David

      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/06/2003 at 13:12, xxxxxxxx wrote:

        hi,
        MakeVariableTag(vtcount) works like that?? Shouldn´t the compiler cry?
        Have you tried this: (UVWTag* )op->MakeVariableTag(Tuvw,vtcount,NULL);
        You aren´t specifying the type of tag at all...weird that your compiler compiles this, mine doesn´t...
        I don´t know though if this is the problem.

        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/06/2003 at 13:35, xxxxxxxx wrote:

          Sorry - typo
          the call I make is

          (UVWTag* )op->MakeVariableTag(Tuvw,vtcount);
          the last value defaults.

          (No email on my work PC)

          david

          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/06/2003 at 13:36, xxxxxxxx wrote:

            Are you freeing your the polygonobject at the end? Have you tried to do some debug sessions to find out where exactly it crashes?

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