How do you write a struct to a place in memory that will be able to be referenced via the ref call and NOT be changed.
I've been passing with ref because I need a pointer to communicate with a dll and the values are getting changed. Not passing by ref throws a "Attempted to read or write protected memory" error.
Thoughts?