-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting 'Index outside bounds of array' error randomly in form load sub #424
Comments
Just released my vb.net was not updated. I'll reply back when it finishes to see if that fixed it. |
@jmw28 Hey! Does this error start occurring only after you install the Live Share extension? If you uninstalled Live Share, does it go away? |
I haven't tried without the extension, but it didn't give me errors on the pc's we have at school which we have the extension on as well. |
@jmw28 Are you seeing this error after sharing your project or joining a Live Share session? Or are you just seeing this error after simply opening the project up in VS? |
I haven't shared it with anyone so it is just once I opened the project. At school we did have it shared though. |
@jmw28 Hmm, OK. Could you try to uninstall Live Share from your home PC just to double-check? That way we can narrow down whether the issue is related to Live Share or not? It sounds like Live Share was working fine at school? |
I'll do that after this update installs. Live share works great at school except for the fact that guests can't see the windows form and all their lines have red underlines. Other than that, it works great! |
Ok, the update did not fix the problem. I'll uninstall live share and see if that works. |
@jmw28 If you go to the Regarding the two items you mentioned:
|
How do I go about uninstalling live share? |
@jmw28 If you go to the |
Great thanks! |
On the bight side, it wasn't VS Live Share. |
On the not so bright side, it is still displaying the error. |
@jmw28 That's great to confirm, since I couldn't imagine why Live Share would be causing this issue :) Regarding the actual error though, are you sure that you defined the |
I defined playerpos in global as playerpos(4) as integer which is the right size. As I said before, it was working and I didn't change a single thing. |
I'll see if I have a problem tomorrow when I get back to school. Thanks for the help! |
Always happy to help! Do you want to keep this issue open, or do you think we’ve confirmed that it’s unrelated to Live Share? |
I think it's confirmed. Thanks for the help again! I can't wait until this live share feature is 100%, it will help so much in group projects! |
Thanks for the feedback! We definitely want to support group project collaboration well, and I’ll ping you when we make progress on the two items you mentioned. Thanks! |
Sounds great! |
Product and Version [VS/VSCode]: VS
OS Version [macOS/Windows]: Windows
Live Share Extension Version:
Target Platform or Language [e.g. Node.js]: VB
I've never had this error before and when I took my project home from school and put it on my desktop at my house, it gave me this error. I tried commenting out the array it is giving an error on and the it hit me that this was not my fault but it was a bug with vb.net. It gave me the same error even on an integer variable that I set to 500. Then I commented the integer out and it gave me the same error on the 'end sub' of the form load sub. I am not sure what to do because it worked perfectly fine at school.
Here's the sub code that is getting the error. It gives errors on all the playerpos(). globalbank and end sub but not the arrpieces() or anything above that.
Private Sub frmMonopoly_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Thanks
The text was updated successfully, but these errors were encountered: