Original Post
So while I'm busy making my game I've come across what looks like memory corruption but I'm not sure what's causing it.
It only happens in one function, and it's right when it is entered.
local variables don't have their correct value.
The memory is fine before and after the function is called but inside it, the memory looks messed up.
This only happens in the release version too.
When the game crashed before it pointed me to something about pfn encodepointer or something, and gave a bad_alloc message.
The function is fairly large, so I'm wondering if maybe it's too big for the stack? idk.
It only happens in one function, and it's right when it is entered.
local variables don't have their correct value.
The memory is fine before and after the function is called but inside it, the memory looks messed up.
This only happens in the release version too.
When the game crashed before it pointed me to something about pfn encodepointer or something, and gave a bad_alloc message.
The function is fairly large, so I'm wondering if maybe it's too big for the stack? idk.