Hello, I'm writing a wrapper app that uses some unmanaged functions and I'm using a lot of pin_ptr.
My question is, most of the time I use pin_ptr inside a method call, and the pin_ptr variable is declared also inside the method call. When the code goes our of the method, can I have any problem because it's no longer pinned? Should I move the declaration to a class scope?
thanks!