المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Nested pinning?



C# Programming
10-27-2009, 06:51 PM
I have a struct that is pinned for use with a few unmanaged functions. One of the fields in the structure is a byte[]. Should I also pin this, or is the pinning of the structure enough?

(Luc - help! I'll get my head around this PInvoke stuff eventually http://www.barakasoft.com/script/Forums/Images/smiley_laugh.gif )

Dave

"My code works, but I don't understand why!" - DaveyM69 (Me)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn (http://www.codeproject.com/Members/Luc-Pattyn))
Why are you using VB6? Do you hate yourself? (Christian Graus (http://www.codeproject.com/script/Membership/View.aspx?mid=6556))