On my winsock program when ever a file is being received, the form for receiving the file freezes up and so does the main form until the file is done being received. Any ideas on how to fix this?
Printable View
On my winsock program when ever a file is being received, the form for receiving the file freezes up and so does the main form until the file is done being received. Any ideas on how to fix this?
I'm not sure if this will work, but try putting a DoEvents statement when the file is being downloaded.
When i use DoEvents, i get an 'Out of Stack Space' error
"Out of stack space" .. hmm, not so good. That might indicate that some function gets called recursively.
Kids, don't try this at home.
Call that SUB, wait, and crash: Sooner or later, you run out of stack space.Code:Private Sub CrashMe(argDummy as Long)
CrashMe 10
End Sub
I had a problem with that when I tried to convert the text in a text box to uppercase whenever the user types:
This code causes an "Out of stack space" error and freezes the form. Because when the text changes to uppercase, the Change event for the Text1 text box fires itself recursively.Code:Public Sub Text1_Change
Text1.Text = UCase$(Text1.Text)
End Sub
Maybe, your program has some bug of this type. Hope this helps you in any way.