2013/12/11 Lauri Kotilainen <[email protected]> > Here's the patch: > https://gist.github.com/rytmis/3735cfc274e135aae753 > > Unfortunately, even with that patch applied, the unit test in my other > post fails -- even though a heap inspection with WinDBG confirms that the > session is no longer rooted and is eligible for collection. >
My attempts with dubious knowledge of Windbg seems to confirm that the test itself did indeed maintain a reference to the SessionImpl instance, as a local variable in the stack fram of IsGarbageCollected<TObject>(ref TObject @object, Action<TObject> useObject). I don't know how to explain that, given that the test code attempted to nullify the reference. Anyway, I've merged a restructured test that ensures any stack frame that might reference the SessionImpl instance expires before the GC collection. /Oskar -- --- You received this message because you are subscribed to the Google Groups "nhibernate-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
