By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,909 Members | 2,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,909 IT Pros & Developers. It's quick & easy.

=[System.InvalidOperationException: Handle is not pinned]= About this Exception.

P: n/a
I'm using managed directx. I made a KeyFrameInterpolator object. And
get a exception above. I think it is because GC reconize
KeyFrameInterpolator object as Pinned object. So I added next line.
System.Runtime.InteropServices.GCHandle.Alloc(myKe yFrameInterpolator,System.Runtime.InteropServices. GCHandleType.Normal);
I set it as Normal. But I got the same Exception. I don't know what
the Handle means.(Handle is not pinned)

It really make my hair white. Please anyone help me, before I got a
all white head.
========== Full message
================================================== ===
System.InvalidOperationException: Handle is not pinned
at System.Runtime.InteropServices.GCHandle.AddrOfPinn edObject()
at Microsoft.DirectX.Direct3D.KeyFrameInterpolator..c tor(String
name, KeyVector3[] scaleKeys, KeyQuaternion[] rotationKeys,
KeyVector3[] translationKeys, Double scaleInputTimeBy)
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.