If I write in C ++ / cli
ref class test {
void method() {<
std::vector<float> my_stack_vector;
native_function_call( & my_stack_vector );
}
};
Can I change the location of my_stack_vector after creating it? I know that if he lived in the base stack, then he would not have changed, but with an additional level of abstraction .Net creates, I do not know if he will move in memory.
More importantly, how can I test this for myself, for example. What will I look for with ILDASM or in my own disassembler after it is compiled into native code at runtime or elsewhere in order to be able to answer such questions on my own in the future?
source
share