2009-08-03 29 views
0

私は、遅いバウンドのCOMオブジェクトもリリースする必要があると思います。
これはどのように直接行われますか?私はカメラをリリースし、Google Earthは、このような状況でオブジェクトが、どのように遅延バインドされたCOMオブジェクトを解放するには?

Type oClassType = Type.GetTypeFromProgID("GoogleEarth.ApplicationGE"); 
object oGE = Activator.CreateInstance(oClassType); 
object oCamera = oGE.GetType().InvokeMember("GetCamera", System.Reflection.BindingFlags.InvokeMethod, null, oGE, new object[] { 0 }); 
double dFocusLatitude = (double)oCamera.GetType().InvokeMember("FocusPointLatitude", System.Reflection.BindingFlags.GetProperty, null, oCamera, null); 
double dFocusLongitude = (double)oCamera.GetType().InvokeMember("FocusPointLongitude", System.Reflection.BindingFlags.GetProperty, null, oCamera, null); 

:私はグーグルアース(簡体)から合焦点を取得するためにC#から次のコードを使用して、私の状況では

答えて

関連する問題