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

Analog.ReadRaw unhandled exception in SecretLabs.NETFM

Analog

  • Please log in to reply
2 replies to this topic

#1 nicualex33

nicualex33

    New Member

  • Members
  • Pip
  • 8 posts

Posted 31 May 2013 - 03:12 AM

Hello,

 

I'm running an app with few threads, reading couple of sensors 10 seconds and showing the results on cosm and an LCD display. One of the sensors is analog and i'm using the standard Readraw to get my values.

 

 

After a while ( random 1 , 2 hours or more ) , the app is crashing , with the following message in the console:

 

[font="consolas;"]A first chance exception of type 'System.NullReferenceException' occurred in SecretLabs.NETMF.Hardware.AnalogInput.dll[/font]

[font="consolas;"]An unhandled exception of type 'System.NullReferenceException' occurred in SecretLabs.NETMF.Hardware.AnalogInput.dll[/font]

 

I'm using latest Netduino Plus 2 firmware ( 4.2.2 ).Any ideas ?

 

 

cheers, Alex

 

 

 



#2 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 31 May 2013 - 07:56 PM

Hi, That "first chance" is from an exception being caught in a try...catch and the second is an exception (the same?) not being caught. I suppose the error is what it is said to be, e.g. an object that unexpectedly has a value of null. Since the code has run for quite a while and the exception looks not to originate from your own code, my guess would be that it is due to unsufficient memory available or something else that builds up over time. I would think its hard for anyone to say much more about it having not seen your code.

#3 nicualex33

nicualex33

    New Member

  • Members
  • Pip
  • 8 posts

Posted 01 June 2013 - 12:15 AM

tnx, will monitor the available memory and see if I can get more info





Also tagged with one or more of these keywords: Analog

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.