G
Guest
HI,
Any help would be appreciated but I'm guessing this is wrong or seomthing.
I'm creating a wait form on a sepearate thread so that I can perform updates
to my main form on the original thread. It doesn't do anything fancy and
there are no buttons or events for mouse or keyboard or anything it's just
there.
When I create the new form on the wait form thread it blocks on the
constructor. I've done a bit of digging and found the
WIndowsFormSynchronizationContext class which is called by the control
constructor. When I set that classes AutoInstall property to false then the
constructor of the wait form completes correctly and everything seems to run
fine.
I was wondering if anyone knew anything about this class and the
implications of turning it to autoinstall to false. I switch it back on after
the constructor but I don't want to take my chances.
Other than that it works perfectly.
Any help would be appreciated but I'm guessing this is wrong or seomthing.
I'm creating a wait form on a sepearate thread so that I can perform updates
to my main form on the original thread. It doesn't do anything fancy and
there are no buttons or events for mouse or keyboard or anything it's just
there.
When I create the new form on the wait form thread it blocks on the
constructor. I've done a bit of digging and found the
WIndowsFormSynchronizationContext class which is called by the control
constructor. When I set that classes AutoInstall property to false then the
constructor of the wait form completes correctly and everything seems to run
fine.
I was wondering if anyone knew anything about this class and the
implications of turning it to autoinstall to false. I switch it back on after
the constructor but I don't want to take my chances.
Other than that it works perfectly.