Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Creating new Socket makes program hang


  • Please log in to reply
2 replies to this topic

#1 Lasse

Lasse

    New Member

  • Members
  • Pip
  • 7 posts

Posted 06 June 2011 - 09:07 AM

On two different webservers I am trying out (mftoolkit and this), the program hangs on 9/10 tries when it gets to the following line:

listeningSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);

However, if I start the webserver with the network cable unplugged and then plug it in after the above line of code has run, there is never a problem.

I run the v4.1.1.0 b1 with extra RAM firmware.

Anybody who has an idea what could be the issue?

#2 ColinR

ColinR

    Advanced Member

  • Members
  • PipPipPip
  • 142 posts
  • LocationCape Town, South Africa

Posted 06 June 2011 - 12:03 PM

Are you handling the NetworkChange_NetworkAvailabilityChanged event? (not that you need to = just wandering if you are doing anything in there) Weird that it's not throwing an exception at least..

#3 Lasse

Lasse

    New Member

  • Members
  • Pip
  • 7 posts

Posted 06 June 2011 - 01:58 PM

Are you handling the NetworkChange_NetworkAvailabilityChanged event? (not that you need to = just wandering if you are doing anything in there)

Weird that it's not throwing an exception at least..


Nope, I'm not doing anything in there.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.