<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Wow, Matt. That works like a charm. THANK YOU.<div><br></div><div>No pointing and laughing from this corner. Except at myself for not setting up a proper email dispatching mechanism. One bridge at a time.</div><div><br></div><div>Again, my thanks for tracking that down.<br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><br class="Apple-interchange-newline">Steve Kleiman</div><div style="font-size: 10px; "><i><a href="mailto:steve@prodhub.com">steve@prodhub.com</a></i></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On May 2, 2010, at 12:49 PM, Matt S Trout wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Fri, Apr 30, 2010 at 02:38:50PM -0700, Steve Kleiman wrote:<br><blockquote type="cite">Here goes...hopefully a simple test case for the RunAfterRequest oddness.<br></blockquote><br><blockquote type="cite">The code below with the forward INSIDE 'run_after_request' subroutine throws the error:<br></blockquote><blockquote type="cite"><blockquote type="cite">[error] Caught exception in engine "Modification of non-creatable array value attempted, subscript -1 at /usr/local/lib/perl5/site_perl/5.10.1/Catalyst/Dispatcher.pm line 278."<br></blockquote></blockquote><br>I think that's probably $c-&gt;stack being empty because there's no request<br>anymore.<br><br>I *think* that<br><br>$c-&gt;view('Email')-&gt;process($c);<br><br>would work, since that doesn't rely on the action call stack.<br><br>That error message is fucking awful though, and almost certainly my fault.<br><br>Proposal: first you try the -&gt;process-by-hand approach to confirm that I'm<br>an idiot the way I think I am. Second we discuss how to either (a) fix this<br>or (b) make sure it produces a non-awful error.<br><br>(even if you've already rewritten the code it'd be much appreciated if you<br>could try this out and see if it does the right thing - also, you then get to<br>point and laugh at me with a bit of luck, which may or may not be an added<br>incentive ;)<br><br>-- <br>Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue<br><br><a href="http://shadowcat.co.uk/blog/matt-s-trout/">http://shadowcat.co.uk/blog/matt-s-trout/</a> &nbsp;&nbsp;<a href="http://twitter.com/shadowcat_mst/">http://twitter.com/shadowcat_mst/</a><br><br>Email me now on mst (at) <a href="http://shadowcat.co.uk">shadowcat.co.uk</a> and let's chat about how our Catalyst<br>commercial support, training and consultancy packages could help your team.<br><br>_______________________________________________<br>List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev site: <a href="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</a><br></div></blockquote></div><br></div></body></html>