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} {
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} {
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} {
puts "background error in handler script: $message"
}
Something like that should get it
Please no. That has been out of date more than a decade.
[interp bgerror] is available since Tcl 8.5. 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: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,124 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 24:41:39 |
| Calls: | 14,394 |
| Calls today: | 3 |
| Files: | 186,389 |
| D/L today: |
6,237 files (1,577M bytes) |
| Messages: | 2,545,009 |
| Posted today: | 1 |