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

Bizarre 'error' when loading assemblies from SD


  • Please log in to reply
7 replies to this topic

#1 H07R0D

H07R0D

    Advanced Member

  • Members
  • PipPipPip
  • 95 posts

Posted 28 January 2013 - 06:34 PM

I'm running 4.2.2.0 

Any time I load an assembly from SD I'm getting the following:

Invalid address 0 and range 40 Ram Start 20000000, Ram end 20020000

 

However, things still seem to be working fine.  I can still call into any objects created from the Assembly, and I don't lose anything I shouldn't during GC.

 

Just wondering what might be generating these.

I haven't tried running without Debug, so maybe this is all moot, but I would still like to know where they're coming from.



#2 me62

me62

    New Member

  • Members
  • Pip
  • 7 posts

Posted 15 February 2013 - 01:52 PM

Is there any update on this 'error'?  I am receiving this same error, but my program does not proceed.  If I use VS Debug build and after the message displays I set a breakpoint anywhere after the 'var assm = Assembly.Load(assmbytes);' line, execution jumps to that line.  Then I press "Continue" and the program proceeds. I am also following http://fabienroyer.w...ith-a-netduino/ My assembly is about 27K.  
 



#3 me62

me62

    New Member

  • Members
  • Pip
  • 7 posts

Posted 15 February 2013 - 02:11 PM

I actually tried with an assembly following the example provided in http://fabienroyer.w...ith-a-netduino/ and I get the error but no issues proceeding. The ASSM.pe file from the example is only 1K.  Maybe this is specific to my assembly, but I would still like to know what is causing the message 

Invalid address 0 and range 40 Ram Start 20000000, Ram end 20020000


#4 me62

me62

    New Member

  • Members
  • Pip
  • 7 posts

Posted 20 February 2013 - 10:01 PM

I found that I could not use any static variables, methods, etc in my assembly run from the SD card. Then even with this "message" the program runs fine...  I did not have this issue with v4.1.  I am using v4.2.  Is there a newer version I maybe should be using?



#5 iReplicate

iReplicate

    New Member

  • Members
  • Pip
  • 4 posts

Posted 10 March 2013 - 12:39 PM

i'm getting the same issue with Assembly.Load.



#6 65tux

65tux

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts

Posted 16 March 2014 - 03:48 PM

Me too - no answer?



#7 65tux

65tux

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts

Posted 16 March 2014 - 05:51 PM

Huh. Got past it but I did 2 things and I'm not sure which one fixed it.  I tried the "remove all statics from Program" thing and, by itself that did not solve the problem.  I then changed my build to "release" and voila, it now boots.  Not sure if just the release would have fixed it, but it's working.



#8 kiwi65

kiwi65

    Member

  • Members
  • PipPip
  • 23 posts

Posted 23 October 2014 - 04:04 AM

I'm getting this too. The 'Hello World' assembly loaded from my SD is tiny (<1k) with no static's. Tried Release vs Debug builds, but the error persists. Anyone cracked this?






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.