public void TkMain(TclAppInitProc initProc, string[] argv) { TclAppInitProcWrapper initWrapper = new TclAppInitProcWrapper(this, initProc); unsafe { TkNative.Tk_MainEx(argv.Length, argv, initWrapper.Callback, _interp); } GC.KeepAlive(initWrapper); GC.KeepAlive(this); }
public void TkInit() { unsafe { HandleError(TkNative.Tk_Init(_interp)); } }