Out of range exception on the "siple" RLPLite demo?

Hi,

I need to improve performance on a byte array loop within my Hydra (4.2). I am definitely a noob :frowning: here, therefore I havefollow the RLPLite Demo on wiki, but can’t run the console example, here is the exception :

[quote] #### Exception System.ArgumentOutOfRangeException - CLR_E_OUT_OF_RANGE (1) ####
#### Message:
#### GHI.OSHW.Hardware.LowLevel.AddressSpace::Write [IP: 0000] ####
#### RLPLiteTestProgram.Program::Main [IP: 0027] ####
Une exception de première chance de type ‘System.ArgumentOutOfRangeException’ s’est produite dans GHI.OSHW.Hardware.dll
Une exception non gérée du type ‘System.ArgumentOutOfRangeException’ s’est produite dans GHI.OSHW.Hardware.dll[/quote]

it seems it’s occur here :

AddressSpace.Write(0xa0000000, binfile, 0, 0x00000328);

Support will be appreciated, thanks.

Is your binfile byte array 0x328 (808 decimal) bytes long?

I would suggest you rather try


AddressSpace.Write(0xa0000000, binfile, 0, binfile.Length);

Thank you so much, working now. May be an update of the RLPLite Demo will be cool for newbee like me …

:slight_smile:

Address space class is not RLP.

@ Gus,

I am using RLPLite. Just copy and paste the wiki example :

@ zakhounet, anyone can update the wiki, can go make the update so that future adventures do not fall prey to the same trap.

@ taylorza,

thanks for the reminder. Done …