Object References Vanishing

Found out I’m an idiot. I eventually realized that I had somehow accidentally switched the build type of my VS editor to be Win32 instead of Win64 in my main project, so I was able to get things working in a separate project, but not in my main one. Question should be closed now.