Using MProgressWindow inside MPxNode::compute

Using MProgressWindow inside MPxNode::compute

danilopeixoto8
Contributor Contributor
625 Views
1 Reply
Message 1 of 2

Using MProgressWindow inside MPxNode::compute

danilopeixoto8
Contributor
Contributor

Hello,

 

Can I use a MProgressWindow inside MPxNode::compute method? My plug-in implementation doesn't reserve MProgressWindow even when it is not being used by another process.

 

I appreciate any help.

0 Likes
626 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

You can use it, but it won't work the way that you want: the UI events for the progress bar will queue up during your compute() call then all execute at once when your compute() is finished and control has returned to the UI.

 

Try using MComputation instead.

 

EDIT: I've never used MComputation within compute(), I'm just suggesting it as something to try. Please let me know how it turns out.

0 Likes