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

    MenuPlugin derivative ctor never called

    Bugs
    0
    1
    347
    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 16/04/2006 at 00:00, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.5 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      This message is just to confirm that I also see the behavior reported in this post.

      My MenuPlugin derivative class's constructor never seems to be called. You can wrap the super() call in println() calls, and you never see either message printed on the console. As reported in the other thread, COFFEE complains if you leave out the call to super() call, oddly enough.

      You can initialize member variables and such in Execute(), but this is awkward. C++ programmers will waste a fair bit of time discovering this behavior, as they will expect the ctor to be called whent the plugin object is created.

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