|
2010-03-05
| ||
| 06:55 | • Closed ticket [2962664fff]: destroing ::oo::object and ::oo::class cause a fatal... artifact: 96e8648639 user: dkf | |
| 06:55 | • Ticket [2962664fff]: 4 changes artifact: 35e252a5eb user: dkf | |
|
2010-03-03
| ||
| 23:29 | • Ticket [2962664fff]: 4 changes artifact: 8f239a142b user: dkf | |
| 22:29 | • Ticket [2962664fff]: 1 change artifact: 5982373d43 user: kennykb | |
| 15:11 | • New ticket [2962664fff]. artifact: a69a2357b3 user: johannes-kuhn | |
destroing ::oo::object and ::oo::class cause a fatal error
Closed / Fixed2962664fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2010-03-03 15:11:53
this will cause a fatal error: ::oo::object destroy ::oo::class destroy -> called Tcl_FindHashEntry on deleted table I think that ::oo::class destroy will also delete all objects/subclasses, but this table has been already deleted. (Ok, I know that destroing ::oo::object or ::oo::class is a bad idea, but... I did it :P )
kennykb Ticket [2962664fff]: 1 change
[History diff]2010-03-03 22:29:25
dkfplain2010-03-03 23:29:19
Confirmed with HEAD. Works correctly the other way round (i.e., says that the second thing to be explicitly killed doesn't exist because it has already gone away).
dkfplain2010-03-05 06:55:26
This is an evil bug caused by the way that oo::class and oo::object get all incestuous with each other. Needed a special case to make it all function correctly. Fixed in HEAD and standalone TclOO package.
dkfplain2010-03-05 06:55:27
allow_comments - 1
Log in (anonymous is fine) to add a comment.