I have a Winforms desktop application which uses NHibernate 2.1.2 and NHibernate.ByteCode.Spring. I am using event listeners which implement the IPreUpdateEventListener, IPreInsertEventListener, IPreDeleteEventListener, and IPreCollectionUpdateEventListener interfaces. The listeners have code which tracks changes which are later used to synchronize data with another system. The listeners are added programmatically before the session factory is created.
On occasion I have found that either the events stop being fired or the listener is becoming detached as my event listeners are suddenly not being triggered. Restarting the application gets things working again. I am not able to get a reproducible case but this has happened on 3 separate machines.
So basically, my listeners are getting NHibernate events then all of sudden they stop getting them.
Has anyone had a similar experience or any idea why this would happen? Thanks in advance for you help.
|