Results 1 to 5 of 5

Thread: [RESOLVED] Random project freeze

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    12

    Re: Random project freeze

    if it helps at all, it hangs when the program (a client application) makes a connection to a another application using a socket. No errors get thrown up and it still manages to send out data as if it was working normally. But just becomes non-responsive.

    Tried adding a timer to run application.doevents but that doesnt fixed it.
    Have error trapping in nearly every procedure but nothing is being flagged up.

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    12

    Resolved Re: Random project freeze

    Ok after many hours and quite a few peoples help, managed to track down the bug (or whatever u will call it) and remove the problem. Still completely confused as to why it happens thou, but atleast i can avoid it now.

    If anyone else is having a similar problem, heres how i solved mine. Hope it helps someone else later.

    Basically i had two tabcontrols, tc1 and tc2.
    During design time tc1 was set to visible, while tc2 was set to invisible.

    Now the program would only fail if it came across the code tc2.visible = true. Not that it failed there, that ran fine infact. So did all the other code. But after it finished running the code it would hang (still dont know why), but it only occured after this property was set to true.

    But i got around this by settin tc2 to visible during run time and on form load set it to false. Now when it came across the tc2.visible = true it wouldnt cause the program to hang later on

    If that makes no sence to you... ive described it well. This doesnt make any sense to me but there ya go. I found a way around it and have shared it with u people.

    Thanks

    Case closed

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