Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic System.ArgumentOutOfRangeException Error (Read 4103 times)
Iouri
Newbies
*
Offline


Posts: 1
Joined: Mar 16th, 2013
System.ArgumentOutOfRangeException Error
Mar 16th, 2013 at 8:49pm
Print Post  
I wanted to try out the VM add-in (intellisense, etc.) I just installed, but currently I am not at home and do not have the board. I am getting ArgumentExceptions al around of this kind:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at processing.app.SketchEditor.get_SelectedBoard()
   at processing.app.SketchEditor.getBoardPreferences()
   at processing.app.SketchBuilder.get_BuildFolder()
   at processing.app.SketchBuilder.get_BuildPath()
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Project oProject, Boolean IsDebugStartCommand)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.OnBeforeCommandEvent(String sGuid, Int32 ID, Object CustomIn, Object CustomOut, Boolean& CancelDefault)

Maybe it's by design... 
Also, Add Arduino Library-> User is grayed out.  Add Arduino Library->Core shows only two entries: LiquidCrystal and SD.
« Last Edit: May 7th, 2013 at 10:03pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Make the add-in usable without a board plugged in
Reply #1 - Mar 16th, 2013 at 10:57pm
Print Post  
Hi. That's a config problem. The system works without board connected. Arduino 1.5 is not supported yet. Make sure the options in vs are pointing to arduino 1.0.x or older if needed
  
Back to top
IP Logged
 
camel84
Newbies
*
Offline


Posts: 6
Location: Braga
Joined: Feb 21st, 2013
Re: Make the add-in usable without a board plugged in
Reply #2 - May 7th, 2013 at 9:36pm
Print Post  
Whitout the errors reported, that was a great idea... 
Debug without arduino board connected...   
and make compatible with last arduino official compiler
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: System.ArgumentOutOfRangeException Error
Reply #3 - May 7th, 2013 at 10:04pm
Print Post  
Sorry, I don't understand. Got a problem or all okay?
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint