S
shankgreen
My question is related to what happens under the hood when marshalling
happens.
When you pass a pointer to a structure from managed to unmanaged, and
if the unmanaged code modified the structure, is the structure copied
from the stack to unmanaged heap and then back or is it modified in
the stack itself.
If it is modifed within the stack itself, what about a managed
structure which has an array reference inside?
happens.
When you pass a pointer to a structure from managed to unmanaged, and
if the unmanaged code modified the structure, is the structure copied
from the stack to unmanaged heap and then back or is it modified in
the stack itself.
If it is modifed within the stack itself, what about a managed
structure which has an array reference inside?