Overview
| Artifact ID: | 647fb8828571b32a3817265ee9fcb2ae644261e1 |
|---|---|
| Ticket: | 219268ffffffffffffffffffffffffffffffffff
Catching errors at [vwait] instead of [bgerror] |
| User & Date: | ferrieux on 2008-04-10 22:39:47 |
Changes
- icomment:
Logged In: YES user_id=496139 Originator: NO It is true that the various callbacks call Tcl_BackgroundError() which does two things: - enqueue the error in a linked list in assocdata("tclBgError") - if not done yet, Tcl_DoWhenIdle(HandleBgErrors) My naive idea was, in presence of [vwait -syncerr], to directly test the non-emptiness of that linked list at each at each turn of the vwait loop, and to directly return from [vwait] with the proper TCL_ERROR and associated error string computed from what's stored in the first cell of the list (BTW I don't know in what situations this list could be longer than 1). So, this would only affect the one vwait that has the flag, and would do so without non-local influence on the behavior of the general client routines like Tcl_BackgroundError() et al. Or am I missing something ? - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"