However, I'm checking Debug.GC(true) before each request/response and it reports between 14k-7k.
The Netduino accepts a socket connection and parses the request.
The request contains arguments of duration and recurrence.
psuedo code
int x = 0 loop { LED ON Sleep [duration] LED OFF Sleep [duration] }while x < recurrence
With each toggle of the LED, the Netduino connects to a socket and sends a small string indicating the LED status has changed.
After a short interval of toggling the LED and sending the status, the Netduino begins to run out of memory. It is however reporting that it still has memory to work with.
Any ideas?
1.) Why is it running out of memory
2.) Why does it report runtime memory remains yet throws out of memory exceptions