Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#578 closed defect (fixed)

events weird behavior

Reported by: ilia Owned by: alex
Priority: high Milestone:
Component: Core Version: 0.3
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by alex)

See test_Tree_9. It should destroy tree with all implicitly created widgets (selector, controller), but actually it doesn't.

The reason is that one of them recieves the treeDestroy message (event.topic) and kills itself, while another one (registered right after 1nd one) does not recieve anything.

Change History (10)

comment:1 Changed 16 years ago by bill

Heh, that's a good one. I assume it's because the code to call the 2nd one is stored inside the first one. (That's not how it works conceptually, but it's how it works internally.)

I'm not sure if we should think of this as a design flaw or what, but one way to workaround the problem should be, instead of the 1st object destroying itself instantly, set a timer for 0ms to destroy itself. like resizeSoon(). Maybe that would work. (hypothetically speaking)

comment:2 Changed 16 years ago by ilia

Priority: normalhigh

The next statement right after tree destruction can be "make new tree and new controller with same name".

The suggested workaround will not handle this..

comment:3 Changed 16 years ago by bill

Well, on second thought maybe my theory doesn't make much sense anyway. But what's supposed to happen if a function deletes itself (while it is running) anyway?

comment:4 Changed 16 years ago by alex

Description: modified (diff)
Milestone: 0.3release0.3.1
Priority: highnormal

no idea what's going on after nearly half an hour of debugging. Punting to 0.3.1

comment:5 Changed 16 years ago by Dustin Machi

Owner: Dustin Machi deleted

I'm not sure exactly why this one got assigned to me, nor do I currently have any idea how to fix this.

comment:6 Changed 16 years ago by dylan

Owner: set to alex

comment:7 Changed 16 years ago by alex

Version: 0.30.4


comment:8 Changed 16 years ago by alex

Version: 0.40.3

comment:9 Changed 16 years ago by bill

Resolution: fixed
Status: newclosed

Fixed by Fredrik in [4461]

comment:10 Changed 15 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.