Jump to content

System.AccessViolationException while calling a player name


Recommended Posts

Posted (edited)

I have an OnPlayerConnected event which is supposed to display the player name connecting on the console.

Whenever I enter the server, it freezes and throws the access violation exception on line 19.

In the debugging output once I stop the server, it says:

Quote

An unhandled exception of type 'System.AccessViolationException' occurred in Bootstrapper.dll
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Here are images of the code, the running server, and the error:

spacer.png

spacer.png

spacer.png

I tried overwriting the Bootstrapper.dll found in runtime folder with the Bootstrapper.dll found in the netcoreapp2.2 folder but the error still remains. Please help.

Edited by DevBe

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...