Jump to content
  • Advertisement
Sign in to follow this  
gamechampionx

VB.net problem

This topic is 4892 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a VB.net program that will compile. When I step through the progam, it starts Shared Sub Main which looks like: Shared Sub Main() Application.Run(New main) End Sub main is just the main form of the program. It then goes to: #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub It goes through those two lines in the method, and returns to Application.Run(New main). I step once more and it crashes, saying: An unhandled exception of type 'System.IndexOutOfRangeException' occurred in system.windows.forms.dll Additional information: Index was outside the bounds of the array. What type of error is this? I'm not sure if it's in my code or if it's something more structural.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!