Quote Originally Posted by talk2amulya View Post
well, i cant move the heavy processing code to another thread cuz there are lots of gui calls in it..and a thread cant have gui calls..i think this problem can only be solved if i get to process events of main thread from another thread..for which i couldnt find an api..any other pointers?
does this heavy processing function call the GUI elements directly? would it not be possible to, in some way, decouple the function and the GUI elements?
because, if it is not the case, we have a simple issue of a function which takes a lot of time being invoked in a thread! and obviously the thread does nothing but execute the function for a long time!!!