Overview
| Artifact ID: | 789c4733da31bb215ccbdda8fa80566e1e2c215a |
|---|---|
| Ticket: | 2918110fffffffffffffffffffffffffffffffff
Segfault from chan postevent |
| User & Date: | andreas_kupries on 2010-01-19 04:15:52 |
Changes
- icomment:
Please note that Tcllib 1.12 contains examples on how to write reflected channels (and transformations). While these use TclOO as foundation, it should easy to cast these back to ensembles as well. % teacup list tcl::chan ; teacup list tcl::trans entity name version platform ------- --------------------- ------- -------- package tcl::chan::core 1 tcl package tcl::chan::events 1 tcl package tcl::chan::fifo 1 tcl package tcl::chan::fifo2 1 tcl package tcl::chan::halfpipe 1 tcl package tcl::chan::memchan 1 tcl package tcl::chan::null 1 tcl package tcl::chan::nullzero 1 tcl package tcl::chan::random 1 tcl package tcl::chan::string 1 tcl package tcl::chan::textwindow 1 tcl package tcl::chan::variable 1 tcl package tcl::chan::zero 1 tcl ------- --------------------- ------- -------- 13 entities found entity name version platform ------- ------------------------- ------- -------- package tcl::transform::adler32 1 tcl package tcl::transform::base64 1 tcl package tcl::transform::core 1 tcl package tcl::transform::counter 1 tcl package tcl::transform::crc32 1 tcl package tcl::transform::hex 1 tcl package tcl::transform::identity 1 tcl package tcl::transform::limitsize 1 tcl package tcl::transform::observe 1 tcl package tcl::transform::otp 1 tcl package tcl::transform::rot 1 tcl package tcl::transform::spacer 1 tcl package tcl::transform::zlib 1 tcl ------- ------------------------- ------- -------- 13 entities found andreask@gila:~/workbench/RefBugs> Please also read the paper on Reflected Channels I am about to attach to this bug, which explains the innards, with emphasis on the event handling code. Despite all this bing said, the core should of course not crash when called badly. One part which my implementations always had is that the postevent is defered through a timer, which meant that the EventScriptRecord as always fully created and initialized.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"