© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•17mo ago•
58 replies
axo

"Object reference not set to an instance of an object"

code: https://github.com/axololly/chess/tree/main/Board.cs#L1073

not sure why this is happening. i changed the
Board
Board
from a
class
class
to a
struct
struct
so it's no longer heap allocated (used in an engine, so these things matter) and now it's raising weird errors like this
GitHub
chess/Board.cs at main · axololly/chess
A chess move generator I made over the summer because my friends didn't want to go out with me. - axololly/chess
chess/Board.cs at main · axololly/chess
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Object reference not set to an instance of an object.
C#CC# / help
2y ago
✅ Object reference not set to an instance of an object?
C#CC# / help
2y ago
Object reference not set to an instance of an object
C#CC# / help
2y ago
❔ ✅ 'Object reference not set to an instance of an object.'
C#CC# / help
3y ago