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

    Cannot close Dialog from another thread

    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 20/05/2004 at 23:42, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.200 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;  C++  ;

      ---------
      Hi,
      I have a strange behaviour here. I have a dialog and a thread. The thread is not created from that dialog. Sometime, I call from that thread the Close() for that dialog (or call a dialog's own method which makes a close) - and it doesn't matter how you call the Close() or what type of dialog is that. The result is that the dialog is not closing and the affect is that all the controls from within the dialog are erased and the dialog content is a picture from the background. Anybody some ideeas?
      Note: the dialog closes fine when I call the Close() from outside that thread
                                     Thanks, Soso.

      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 25/05/2004 at 18:06, xxxxxxxx wrote:

        You cannot call GUI function like Close() from threads. One way around it is to set a flag in the dialog and let it close itself within its timer function.

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