I’ve downgraded from 4.2 to 4.1 because Socket.Send randomly hangs (and by hangs I mean everything, all threads and also the debugger that when I try to stop hangs the visual studio also).
But now, all the controls have disappear; the 4.1 doesn’t have designer support?
How exactly did you “downgrade”? If you mean you uninstalled 4.2 then I think you still need that installed. You just need to point your projects to the 4.1 libraries. You should still have controls in your toolbox.
I’ve installed GHI NETMF v4.1 SDK and after that used the 4.1 Fez Spider Updater; if I create a new 4.1 gadgeteer app I have no control in toolbox; the same happens if I change the Target Framework of an existing 4.2 app to 4.1
and if you really want to work on 4.1, that’s ok, but you need to install the 4.2 SDK and 4.2 Gadgeteer set again and just target 4.1 as your desired framework. Make sure you “update” the firmware to 4.1 in unison though.
I had a same problem. The only difference was, that I had to open and close socket after each sending. The code works fine, but when the server becomes unavailable, the client just hangs. Then I add socketexeption catch, and reboot the system. I know that this is not elegant solution, but works for me.
@ Mike - Yes, I need to send at least 50k, it is a picture. Actually I try to send every time the BitmapStreamed event of the camera it is raised. I’ve tried with the web server; it is more than 3 times slower than with the socket - but with the socket is unreliable.
@ tvinko - Since I kinda try to do some streaming closing and reopening the socket won’t do for me.
@ RoSchmi - The buffer getting full is what I also suspect; I tried to change the size using the SetSocketOption with SocketOptionName.SendBuffer, but it throws exception.