Grasshopper

algorithmic modeling for Rhino

I'm working on a component in Visual Studio for Grasshopper. Most code compiles within VS without an error, but once you add inputs and outputs, the issues start coming.

Currently I am struck with a bug that tells me:

The error is:

1. Solution exception:Parameter must be positive and < Height.
Parameter name: y

I can approximate where it is in my code that is throwing this error, but it doesn't point to anything specific. What can I do at this point?

Attached is the code.

Class1.cs

Views: 273

Replies to This Discussion

Have you set up debugging correctly on your VS? If so, you should be able to set a breakpoint and walk through your code, see where the error happens.

--

David Rutten

david@mcneel.com

But seriously, if you can't debug your components from within Visual Studio you should try and make that work. The more code you write the more important it becomes that you can examine states and callstacks via breakpoints.

--

David Rutten

david@mcneel.com

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service