RTE 91

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?

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

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

Figured out the issue. I’m stupid, that’s all I’m saying.

Log in to reply