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
    • Register
    • Login

    thread trouble

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 326 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 25/03/2005 at 14:27, xxxxxxxx wrote:

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

      ---------
      Hi,
      What's wrong when i do this:
      //-----------
      class MessageThread : public Thread
      {
            public:
               virtual void Main(void);
      };
      //---------------------------
      void MessageThread::Main(void)
      {
      // blabla
      }
      //----------------
      And in my code:
      MessageThread.Start(TRUE, FALSE);
      AND....
      MessageThread.End;
      --------
      Why are the Start ans End statments not accepted
      Why do i nowhere in the examples see the Thread.End used ?
      Is it taken care of by the OS?
      Thanks in advance

      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 27/03/2005 at 03:04, xxxxxxxx wrote:

        You might have to do this:
        class MessageThread : public Thread
        {
              public:
                 virtual void Main(void);
        };
        void MessageThread::Main(void)
        {
        // blabla
        }
        // Nothing changed above, but
        // Change/add this in the plugin code:
        MessageThread MyThread;
        MyThread.Start(TRUE, FALSE);
        //---
        MyThread.End;

        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 27/03/2005 at 06:41, xxxxxxxx wrote:

          Thanks Duck, very stupid of me, but it does not work either...
          The code compiles but c4d refuses the plug.

          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 10/04/2005 at 15:17, xxxxxxxx wrote:

            You both write MyThread.End, but I assume that should be MyThread.End()? (Otherwise it's a no-op.) If C4D refuses the plugin, perhaps you have a global variable somewhere? That isn't allowed, unless you set the __WINCRTINIT define.

            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/04/2005 at 02:54, xxxxxxxx wrote:

              Yes,ok, thanks for the no-op and your respons.
              The #define did'nt help, i'm sorry, but i seem to do something wrong elsewhere??

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