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

    GeDialog stops while execute an algorithm

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 345 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 09/08/2008 at 05:25, xxxxxxxx wrote:

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

      ---------
      Hi!

      I've a problem with GeDialog. A CommandData opens a GeDialog GUI. InitValue contains an algorithm that requires 3-4 seconds to calculate, but the GeDialog is only shown after the algorithm is executed.

      Wrong:
      Click on CommandData Entry
      Algorithm execution (c4d hangs)
      Algorithm executed
      GeDialog pops up

      Correct:
      Click on CommandData Entry
      GeDialog pops up
      Algorithm execution (c4d hangs)
      Algorithm executed

      Does anyone knows, how to solve it?

      Thanks a lot...

      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 09/08/2008 at 06:16, xxxxxxxx wrote:

        When the commanddata opens the dialog then simply let the commandData call the algorithm. Write a function for the algorithm in your dialog class.

        YourDialogClass : GeDialog
        {
        MyAlgorithm();
        }

        So..
        if(YourDialog->Open(x,y))
        YourDialog->MyAlgorithm();

        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 09/08/2008 at 07:36, xxxxxxxx wrote:

          Hi 3D Designer 🙂

          Thx, thats a good idea.. it works...

          I only have one problem with thread. Is it possible, that I can't change the layout of a dialog from a different thread?

          Thanks..

          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 09/08/2008 at 16:56, xxxxxxxx wrote:

            Hi! 🙂

            Ater using the search fucntion, I found out, GUI functions are indeed not thread-safe...

            bye

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