GeDialog stops while execute an algorithm

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

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();

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

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