[Mono-bugs] [Bug 333746] Possible bug with garbage collection (NHibernate example)
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Oct 16 15:58:15 EDT 2007
https://bugzilla.novell.com/show_bug.cgi?id=333746#c2
Zoltan Varga <vargaz at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vargaz at gmail.com
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Zoltan Varga <vargaz at gmail.com> 2007-10-16 13:58:14 MST ---
If Dispose() throws an exception, then AfterTransactionCompletion() is called
twice, the first call sets session to null. No idea why Dispose () throws an
exception in this case. Try reporting this to the NHibernate developers.
try
{
trans.Commit();
committed = true;
AfterTransactionCompletion(true);
Dispose();
}
catch (HibernateException e)
{
log.Error("Commit failed", e);
AfterTransactionCompletion(false);
commitFailed = true;
// Don't wrap HibernateExceptions
throw;
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list