In doing some testing to try and resolve this problem "viewtopic.php?f=2&t=7152" I experimented by adding a call to freeaddrinfo once the connection to the socket is established.
Earlier I commented out that call because when I called freeaddrinfo in case a connection could not be established ( after a +/- 18 second timeout ) I got an instant CORRUPT_HEAP error message and a subsequent reboot.
Reactivating the call once the socket is connected causes slightly different behaviour:
- The software does not crash instantly but carries on for a few seconds.
- Then I get the familiar CORRUPT_HEAP message and the reboot.
I suppose both problems might be related but I have not got a clue as to what is going wrong. Does anyone have any ideas or suggestions?