Comment #1 on issue 253 by
[hidden email]: unsubscribing in middle of
event handling is Trouble for Announcements
http://code.google.com/p/glassdb/issues/detail?id=253Here's problem description:
I found that some components are unsubscribed within de action sequence
block, and that seems to be the problem.
In Squeak, the same code works correctly.
Once the announcement is executed the current component is replaced with
another, and I need to unsubscribe the previous one.
CMSPanel>>registerAnnouncements
self session announcer
on: EditRecordItemSelected
do: [ :each | self editRecord: each item. ].
editRecord: aRecord
self current: (RecordEditor for: aRecord)
CMSPanel>>current: aComponent
self session announcer unsubscribe: current.
current := aComponent.
If I comment the the first line, then the application stop crashing.