Results 1 to 4 of 4

Thread: Form Freezes, Please Help

  1. #1
    Guest

    Talking

    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?

  2. #2
    Guest
    I'm not sure if this will work, but try putting a DoEvents statement when the file is being downloaded.

  3. #3
    Guest

    Talking

    When i use DoEvents, i get an 'Out of Stack Space' error

  4. #4
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    "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
  •  



Click Here to Expand Forum to Full Width