Esempio n. 1
0
        private static void AsyncComplete(IntPtr aPtr, IntPtr aAsyncHandle)
        {
            GCHandle   gch  = GCHandle.FromIntPtr(aPtr);
            Invocation self = (Invocation)gch.Target;

            try
            {
                self.iAsyncComplete(aAsyncHandle);
            }
            catch (ProxyError)
            {
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine("WARNING: unexpected exception {0} thrown", new object[] { e });
                System.Diagnostics.Debug.WriteLine("         Only ProxyError can be thrown by action complete delegates");
            }
            gch.Free();
            self.iService.InvocationComplete(self);
        }
Esempio n. 2
0
        private static void AsyncComplete(IntPtr aPtr, IntPtr aAsyncHandle)
        {
            GCHandle   gch  = GCHandle.FromIntPtr(aPtr);
            Invocation self = (Invocation)gch.Target;

            try
            {
                self.iAsyncComplete(aAsyncHandle);
            }
            catch (ProxyError)
            {
            }
            catch (Exception e)
            {
                Console.WriteLine("WARNING: unexpected exception {0}(\"{1}\") thrown by {2}", e.GetType(), e.Message, e.TargetSite.Name);
                Console.WriteLine("         Only ProxyError can be thrown by action complete delegates");
            }
            gch.Free();
            self.iService.InvocationComplete(self);
        }