Ejemplo n.º 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (m_native != null)
     {
         m_native.Release(IntPtr.Zero);
         m_native = null;
     }
     if (m_nativeRef != IntPtr.Zero)
     {
         Registration.removeObject(m_nativeRef);
         m_nativeRef = IntPtr.Zero;
     }
 }
Ejemplo n.º 2
0
 public CppProxyBuffer(signals.IModule module, IntPtr native)
 {
     if (module == null) throw new ArgumentNullException("module");
     if (native == IntPtr.Zero) throw new ArgumentNullException("native");
     m_module = module;
     m_nativeRef = native;
     Registration.storeObject(native, this);
     m_native = (Native.IEPBuffer)CppNativeProxy.CreateCallout(native, typeof(Native.IEPBuffer));
     interrogate();
 }