Hi,

I am trying to get the base of unmanaged stack, the reason I want this is because i am sandboxing my C code so that it doesnt write to managed heap and stack.
I got the value of the esp at the beginning of the C program (via assembly instructions) but (as jonp said) at this point the  local variables are already on the unmanaged stack.
 
Is there any way to get to the beginning of the unmanaged stack?

( I tried inserting extra marker arguments in (emit_wrapper) so that I can get to it in C code, but I totally broke mono compilation !!  )

Also, to insert an ARGUMENT of type  say at runtime,   valuetype PlatformInvokeTest/DataObj*   V_4. (Need to generate Il code to declare a pointer to the user defined structure)
should i use:   
 um_ptr = mono_mb_add_local (mb, &mono_defaults.int_class->byval_arg);
or      um_ptr = mono_mb_add_local (mb, &(pclass->byval_arg));
 
 
Thank you very much,
shankari


Yahoo! FareChase - Search multiple travel sites in one click.
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to