[Mono-list] Unmanaged Stack bound to prevent corruption
Shankari
shankari82 at yahoo.com
Mon Oct 31 14:56:42 EST 2005
Hello,
I am trying to locate the bounds for the unmanaged or managed stack. The purpose is to sandbox my unmanaged code.
I looked into metadata/threads.c and there is "stack_ptr" defined for each managed thread. But how can I know the size of it , so that I can arrive at managed stack extent.
If I can get the bounds of the unmanaged stack, that would be fine too.
The issue here is , i tried passing a value by reference to the unmanaged code and printed out its address in both C# and C, they look pretty close together. I am not sure why this happens.
Any way of finding this info out?
Thanks,
Shankari
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20051031/9e23d8dc/attachment.html
More information about the Mono-list
mailing list