Folderbrowserdialog ContextSwitchDeadlock
I have had a problem resulting in ContextSwitchDeadlock and a consequent build up in memory use.
The following is a snippet which results in the error when using a Folderbrowserdialog control.
How can the ContextSwitchDeadlock be avoided?
PrivateSub Button1_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles Button1.Click
FolderBrowserDialog1.ShowDialog()
Dim tstartAsDouble
tstart = DateAndTime.Timer
DoWhile DateAndTime.Timer < tstart + 70.0TextBox1.Text = DateAndTime.Timer - tstart
Refresh()
LoopEndSub
