internal static pxcmStatus SubscribeAlertINT(IntPtr instance, OnFiredAlertDelegate handler, out Object proxy)
 {
     AlertHandlerDIR adir = new AlertHandlerDIR(handler);
     pxcmStatus sts = PXCMFaceConfiguration_SubscribeAlert(instance, adir.uDIR);
     if (sts < pxcmStatus.PXCM_STATUS_NO_ERROR)
         adir.Dispose();
     proxy = (Object)adir;
     return sts;
 }
Exemple #2
0
        private void SubscribeINT(OnAlertDelegate d)
        {
            if (handler != null)
            {
                handler.Dispose();
                handler = null;
            }

            if (d != null)
            {
                handler=new AlertHandlerDIR(d);
                PXCM3DSeg_Subscribe(instance, handler.dirUnmanaged);
            }
            else
            {
                PXCM3DSeg_Subscribe(instance, IntPtr.Zero);
            }
        }