Xlithan Posted June 6, 2016 Author Share Posted June 6, 2016 I've been converting my Mirage Source networking code to the one SkyWyre uses. However, I'm getting **RTE 91: Object variable or With block variable not set**The error appears in Incoming Data sub routine on this line:_TempPlayer(index).buffer.WriteBytes buffer()_From my research, it's possible that Buffer() isn't set to anything which is why the error is being produced. But there is a packet containing data, as the DataLength is 43 bytes. Any ideas? Link to comment Share on other sites More sharing options...
Lavos Posted June 6, 2016 Share Posted June 6, 2016 ..ugh you're asking a hard question their buddy. The only way of thinking to solve RTE91 is to actually move into debugging tools to see what is actually happening with between client and server. Just use the immediate box to find out what value is it returning. Link to comment Share on other sites More sharing options...
Exception Posted June 6, 2016 Share Posted June 6, 2016 Should be simple; one of the things there is Nothing.Open up your IDE and get to that point and hover over TempPlayer(index), TempPlayer(index).buffer and buffer() and see what could possibly be null. Once you've determined that, come back. ~(edit: or, if you want to forgo that "come back" step entirely, figure out where what's null should be set and ensure that's being called before you try to use it.) Link to comment Share on other sites More sharing options...
Xlithan Posted June 10, 2016 Author Share Posted June 10, 2016 Figured out the issue. I'm stupid, that's all I'm saying. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now