D
David Lowndes
I've got a project with a fair bit of mixed C++/CLI calling native
code, often passing raw pointers - and I'm worrying that we may have
occasions where we don't use pin_ptr when we need to.
However, after a few experiments I was unable to compile code (VS2005)
that casually tried to do the wrong thing.
So, is anyone aware of any common gotchas where you can have code that
compiles cleanly (and works in all tests) that's not using pin_ptr
where it ought to?
Dave
code, often passing raw pointers - and I'm worrying that we may have
occasions where we don't use pin_ptr when we need to.
However, after a few experiments I was unable to compile code (VS2005)
that casually tried to do the wrong thing.
So, is anyone aware of any common gotchas where you can have code that
compiles cleanly (and works in all tests) that's not using pin_ptr
where it ought to?
Dave