⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 backgderr.3

📁 linux系统下的音频通信
💻 3
字号:
'\"'\" Copyright (c) 1992-1994 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) BackgdErr.3 1.3 96/03/25 19:56:51'\" .so man.macros.TH Tcl_BackgroundError 3 7.5 Tcl "Tcl Library Procedures".BS.SH NAMETcl_BackgroundError \- report Tcl error that occurred in background processing.SH SYNOPSIS.nf\fB#include <tcl.h>\fR.sp\fBTcl_BackgroundError\fR(\fIinterp\fR).SH ARGUMENTS.AS Tcl_Interp *interp.AP Tcl_Interp *interp inInterpreter in which the error occurred..BE.SH DESCRIPTION.PPThis procedure is typically invoked when a Tcl error occurs during``background processing'' such as executing an event handler.When such an error occurs, the error condition is reported to Tclor to a widget or some other C code, and there is not usually anyobvious way for that code to report the error to the user.In these cases the code calls \fBTcl_BackgroundError\fR with an\fIinterp\fR argument identifying the interpreter in which theerror occurred.  At the time \fBTcl_BackgroundError\fR is invoked,\fIinterp->result\fR is expected to contain an error message.\fBTcl_BackgroundError\fR will invoke the \fBbgerror\fRTcl command to report the error in an application-specific fashion.If no \fBbgerror\fR command exists, or if it returns with an error condition,then \fBTcl_BackgroundError\fR reports the error itself by printinga message on the standard error file..PP\fBTcl_BackgroundError\fR does not invoke \fBbgerror\fR immediatelybecause this could potentially interfere with scripts that are in processat the time the error occurred.Instead, it invokes \fBbgerror\fR later as an idle callback.\fBTcl_BackgroundError\fR saves the values of the \fBerrorInfo\fR and\fBerrorCode\fR variables and restores these values just beforeinvoking \fBbgerror\fR..PPIt is possible for many background errors to accumulate before\fBbgerror\fR is invoked.  When this happens, each of the errorsis processed in order.  However, if \fBbgerror\fR returns abreak exception, then all remaining error reports for theinterpreter are skipped..SH KEYWORDSbackground, bgerror, error

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -