<div class="gmail_quote">On Mon, Jul 27, 2009 at 7:36 PM, Federico Tomassini <span dir="ltr">&lt;<a href="mailto:federicotom@yahoo.it">federicotom@yahoo.it</a>&gt;</span> wrote:<br><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I encountered the following problem. It sounds really strange.<br>
I discovered, using pdb and gc inside logoutPortal(), that<br>
visited pages remain alive.<br>
<br>That does seem pretty strange.<br> </blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">So, I created a WastingMemPage(rand.Page) class</blockquote>
<div><br>Rather than wasting lots of memory to debug, why not use gc.get_referrers to discover what&#39;s keeping your rend.Page instance alive?  Perhaps it&#39;s an object in your own application that you can get rid of.  Or, if it&#39;s a bug in Nevow, it will tell us where in Nevow.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

  * Is a rend.Page() not deleted once rendered?</blockquote><div><br>It certainly <i>should</i> be, assuming nothing&#39;s hanging on to it...<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 * Altough the previous question, why pages remain<br>
    linked from something after portalLogout()?<br></blockquote><div> <br>I don&#39;t know.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What&#39;s happening? Am I making some mistake?</blockquote><div><br>Without access to your code — and, I would imagine, a pretty extensive debug log — I couldn&#39;t tell you exactly what&#39;s happening.<br><br>Can you construct a minimal example which demonstrates the problem, which someone on this list could run and debug?<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is there some limit on portalLogout()?<br>
</blockquote><div><br>No.  The behavior you&#39;re noticing sounds like a definite bug somewhere; if not in your code then in Nevow itself.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
py 2.5/2.4. Nevow 0.9.31.<br></blockquote></div><br>Have you tried Nevow trunk@HEAD?  Does the problem still exist?<br>