Hi,
I have a N+ on to which I am deploying a 19K application. It is flashed with RC 4.2 This uses the standard assembies plus Secretlabs.NetMF.IO assembly. It drives a LCD via SPI, a small webserver based on threaded sockets, and an SD card for data storage. I am getting memory allocation errors. "Failed allocation for 343 blocks 4416 bytes. A first chance exception of type System.Exception occurred".
My question is: am I being over ambitious with N+?
Secondly should I use static or dynamic classes? I have been experimenting with dynamic classes, hoping that the garbage collector will help me out.
Over ambitious ???
Started by erich, Sep 21 2011 08:45 AM
2 replies to this topic
#1
Posted 21 September 2011 - 08:45 AM
#2
Posted 21 September 2011 - 09:55 AM
a small webserver based on threaded sockets
If anything I would say, that's over ambitious. What if a large number of requests hit the Netduino at once? You're quickly going to run out of RAM.
#3
Posted 21 September 2011 - 12:28 PM
Thanks for the response.
I agree but in reality there will be only 1-2 users as the device will be situated behind a firewall. My question was more general than that - I am finding that even when debugging the device quickly runs out of memory - hence question about static vs dynamic objects.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users