Link to home
Start Free TrialLog in
Avatar of marioana
marioana

asked on

Call method from a different thread

I have an application that uses 2 threads, one for calculations and one for displaying an UI. I need to call a method that is in the calculation thread from the UI thread. When I call methods located in the UI thread from the calculation thread I use Invoke, but the other way around is not working.
ASKER CERTIFIED SOLUTION
Avatar of mastoo
mastoo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of marioana
marioana

ASKER

In the end it seems it's not a threadng problem, but my question was threading related, so I thank you for the answer.