Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

RTE 91


Recommended Posts

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

..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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...