home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,393 of 10,840   
   Henning to All   
   Re: Winsock stops throwing dataarrival e   
   25 Jan 07 14:05:25   
   
   XPost: comp.lang.basic.visual   
   From: computer_hero@coldmail.com   
      
   "Mark"  skrev i meddelandet   
   news:45b850f5$0$8972$4c368faf@roadrunner.com...   
   > Hi,   
   >   
   > I have a VB6 project that uses a winsock control to receive text   
   > messages over a UDP connection.   
   >   
   > It used to work fine. However, when I changed the code to make it more   
   > efficient (ie, less processing was done with each received message), the   
   > program has this weird bug where it will stop acting on the messages   
   > received. The program might work fine for a whole day, receiving   
   > thousands of messages, so it is an intermittent problem.   
   >   
   > When it does stop responding, the program itself is still responsive to   
   > user inputs, and a log file I wrote indicated that no new messages were   
   > being received. However, if the program is stopped and restarted, the   
   > messages are again processed.   
   >   
   > Another winsock control that is listening on port 80 for web requests   
   > also continues to work.   
   >   
   > Has anyone encountered this or know of a possible solution?   
      
   I don't know if this helps, but the Winsock ctrl does not just receive   
   complete msg's from UDP. There can be partly received msg's in the buffer.   
      
   /Henning   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca