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

Over ambitious ???


  • Please log in to reply
2 replies to this topic

#1 erich

erich

    Member

  • Members
  • PipPip
  • 21 posts
  • LocationFrance

Posted 21 September 2011 - 08:45 AM

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.

#2 ColinR

ColinR

    Advanced Member

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

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 erich

erich

    Member

  • Members
  • PipPip
  • 21 posts
  • LocationFrance

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

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.