Cannot close Dialog from another thread



  • 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.



  • 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.


Log in to reply