static extern void ZappInitParamsSetAsyncErrorHandler(uint aParams, ZappCallbackAsync aCallback, IntPtr aPtr);
public void SetAsyncErrorHandler(ZappCallbackAsync aCallback) { IntPtr ptr = GCHandle.ToIntPtr(iGch); ZappInitParamsSetAsyncErrorHandler(iHandle, aCallback, ptr); }