Re:
Re:
Re:
Re:
Re:
Re: Re: Re: Re: Re: Re: Re: Re:
Re: Re:
Re:
Go Back  Xtreme Visual Basic Talk > > > Re:


Reply
 
Thread Tools Display Modes
  #1  
Old 09-12-2001, 02:47 PM
david369
Guest
 
Posts: n/a
Default Re:


That didnt seem to do anything. Im not sure where the problem lies exactly. I set the timer to add 1 to the value of a textbox every interval. When the host is listening (there r no errors) the the timer works, as i can see the value in the textbox increasing. However, when their is an error the timer stops doing anything.

Maybe this is to do with the loop command on the timer?

Do Until Winsock2.State = sckConnected
DoEvents
Loop


Winsock2.SendData Text1

I noticed that when there is an error this sub doesnt finish, so maybe the timer gets "stuck" on the loop?

If so is their anyway to reset the timer somehow? Or a command to force the sub to exit or end. (ie in another sub routine call the timer sub to end)?


Reply With Quote
  #2  
Old 09-12-2001, 03:11 PM
david369
Guest
 
Posts: n/a
Default Re:

that was a reply to the post winsock error with timer ..but this thing seems to have screwed up.

Reply With Quote
  #3  
Old 09-12-2001, 04:09 PM
david369
Guest
 
Posts: n/a
Default Re:

Iv solved the problem now anyway. The problem was being stuck on the loop while the timer tried to count on. The solution was when an error occurred to set the value of a variable to true. Then in the loop on the timer put
if variable=true then exit sub

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Re:
Re:
Re: Re:
Re:
Re:
Re: Re: Re: Re: Re: Re: Re:
Re:
Re:
 
Re:
Re:
 
-->