/// <summary> /// Setup a Sciter window specific debug output handler /// </summary> /// <param name="hwnd"></param> public SciterDebugOutputHandler(IntPtr hwnd) { Debug.Assert(hwnd != IntPtr.Zero); _proc = this.DebugOutputProc; _api.SciterSetupDebugOutput(hwnd, IntPtr.Zero, _proc); }
private readonly SciterXDef.DEBUG_OUTPUT_PROC _proc; // keep a copy of the delegate so it survives GC /// <summary> /// Setup a global debug output handler /// </summary> public SciterDebugOutputHandler() { _proc = this.DebugOutputProc; _api.SciterSetupDebugOutput(IntPtr.Zero, IntPtr.Zero, _proc); }