Multithreaded forms application
-
Hi, i'm building a solution that has plenty of forms interacting with each other, based on MDI Parent - child model. I created instances of them, never closing, just hiding those. I've also got some other forms that perform some analysis that might take a while. What i'm wondering :doh: is if it would be a good approach to make this calls to modalform on a different thread, or to only perform the long tasks on these forms on different thread in order to prevent the app to hold. Thanks for your time. I appreciate all suggestions. daniel sovino
-
Hi, i'm building a solution that has plenty of forms interacting with each other, based on MDI Parent - child model. I created instances of them, never closing, just hiding those. I've also got some other forms that perform some analysis that might take a while. What i'm wondering :doh: is if it would be a good approach to make this calls to modalform on a different thread, or to only perform the long tasks on these forms on different thread in order to prevent the app to hold. Thanks for your time. I appreciate all suggestions. daniel sovino
Hi, the rule is to perform long (over 30 msec) operations on extra threads, and all GUI stuff on the main thread (because Controls are not thread-safe, so having other threads access some Controls will eventually hang the app). :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google