Is that a correct statement?
On 6/23/26 7:50 AM, saito wrote:
Is that a correct statement?
Event handlers are deleted after an error
On 6/23/2026 12:17 PM, David Gravereaux wrote:
On 6/23/26 7:50 AM, saito wrote:
Is that a correct statement?
Event handlers are deleted after an error
Wow! This is totally unexpected. However it explains the behavior I see.
The man page says chan specifically but I assume it applies equally to sockets, pipes, file open's, etc. as well where one can assign an event handler?
Is there a way to log that problematic error message?
Is there a proper way to manage this apart from putting catch
everywhere?
Is there a proper way to manage this apart from putting catchIt sounds like 'bgerror' is the official way, although 'catching' (or
everywhere?
[try]) around things is an alternative.
On 6/23/26 11:10 AM, Rich wrote:
Is there a proper way to manage this apart from putting catchIt sounds like 'bgerror' is the official way, although 'catching' (or
everywhere?
[try]) around things is an alternative.
proc bgerror {message} {
-a-a-a puts "background error in handler script: $message"
}
Something like that should get it
On 6/23/26 11:10 AM, Rich wrote:
Is there a proper way to manage this apart from putting catchIt sounds like 'bgerror' is the official way, although 'catching' (or
everywhere?
[try]) around things is an alternative.
proc bgerror {message} {
-a-a-a puts "background error in handler script: $message"
}
Something like that should get it
saito <saitology9@gmail.com> wrote:
On 6/23/2026 12:17 PM, David Gravereaux wrote:
On 6/23/26 7:50 AM, saito wrote:
> Is that a correct statement?
Event handlers are deleted after an error
Wow! This is totally unexpected. However it explains the behavior I see.
I believe it also has been Tcl's event model since way long ago.
On 6/23/26 15:14, David Gravereaux wrote:
On 6/23/26 11:10 AM, Rich wrote:
Is there a proper way to manage this apart from putting catchIt sounds like 'bgerror' is the official way, although 'catching' (or
everywhere?
[try]) around things is an alternative.
proc bgerror {message} {
-a-a-a-a puts "background error in handler script: $message"
}
Something like that should get it
Please no.-a That has been out of date more than a decade.
[interp bgerror] is available since Tcl 8.5.-a Use that.
On 6/23/2026 12:17 PM, David Gravereaux wrote:
On 6/23/26 7:50 AM, saito wrote:
Is that a correct statement?
Event handlers are deleted after an error
Wow! This is totally unexpected. However it explains the behavior I see.
The man page says chan specifically but I assume it applies equally to sockets, pipes, file open's, etc. as well where one can assign an event handler?
Is there a way to log that problematic error message? Is there a proper
way to manage this apart from putting catch everywhere?
And thanks!
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 70 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 39:29:01 |
| Calls: | 948 |
| Calls today: | 2 |
| Files: | 1,325 |
| Messages: | 280,644 |