|
-
May 28th, 2000, 03:52 AM
#1
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?
-
May 28th, 2000, 04:43 AM
#2
I'm not sure if this will work, but try putting a DoEvents statement when the file is being downloaded.
-
May 28th, 2000, 06:18 AM
#3
When i use DoEvents, i get an 'Out of Stack Space' error
-
May 28th, 2000, 08:06 AM
#4
Fanatic Member
"Out of stack space" .. hmm, not so good. That might indicate that some function gets called recursively.
Kids, don't try this at home.
Code:
Private Sub CrashMe(argDummy as Long)
CrashMe 10
End Sub
Call that SUB, wait, and crash: Sooner or later, you run out of stack space.
I had a problem with that when I tried to convert the text in a text box to uppercase whenever the user types:
Code:
Public Sub Text1_Change
Text1.Text = UCase$(Text1.Text)
End Sub
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.
Maybe, your program has some bug of this type. Hope this helps you in any way.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|