K
kiplring
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(myKeyFrameInterpolator,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.AddrOfPinnedObject()
at Microsoft.DirectX.Direct3D.KeyFrameInterpolator..ctor(String
name, KeyVector3[] scaleKeys, KeyQuaternion[] rotationKeys,
KeyVector3[] translationKeys, Double scaleInputTimeBy)
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(myKeyFrameInterpolator,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.AddrOfPinnedObject()
at Microsoft.DirectX.Direct3D.KeyFrameInterpolator..ctor(String
name, KeyVector3[] scaleKeys, KeyQuaternion[] rotationKeys,
KeyVector3[] translationKeys, Double scaleInputTimeBy)