• Post Reply Bookmark Topic Watch Topic
  • New Topic

for loops  RSS feed

 
Steven Alvarez
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So lets say I have something like this:



I get frozen when I do that. So then I tried:



But that doesn't work. It there a way to create a new socket everytime the loop iterates?
 
Steven Alvarez
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone know how I can declare a new socket everytime the loops iterates, so it wont freeze my application?
 
Brian Manahan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By frozen, do you mean it forces your thread to wait? If so, you might have to create new threads.
 
Steven Alvarez
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not using any threads, just a for loop. It freezes until the loop ends. Is there any way to create a new socket everytime the loop iterates?
 
Steven Alvarez
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have stumped everyone. lol.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!