tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/634-module-content-only-loads-correctly-on-second-loadRobotlegs: Discussion 2012-08-31T08:50:27Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/183642952012-08-29T16:10:43Z2012-08-29T16:10:43ZModule content only loads correctly on second load.<div><p>Ok I've just been going through my code with a colleague and
identified the bug. It was because at start up, the IModuleInfo
object I was using to load the module was being blown away by the
garbage collector. As soon as I created a private variable within
my mediator and assigned it to that instead of just referring to it
via the event variable, things worked fine.</p>
<p>It would seem that after the first load, the garbage collector
is not so greedy and allows the reference to hang around and the
module loads fine.</p></div>jeremy.brooks