<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><div style="direction: ltr;">&gt; Is this behavior correct?<br><br>Yes, given the current implementation this behavior is totally correct.
<br></div><div style="direction: ltr;"><span class="q"><br>&gt; should the session be nil inside a forked block?<br><br></span></div>You can avoid your particular problem like this:<br><br> &nbsp; session := self session.<br> &nbsp; [ WACurrentSession use: session during: [ ... ] ] fork.
<br><br>&gt; if so, why?<br><br>WACurrentSession uses the exception handling (the execution stack) to<br>determine the current session. A forked block has a new stack and<br>looses this information. The package DynamicBindings provide some
<br>tools to make similar things work across process boundaries,<br>unfortunately this is not really platform independent.<br><br>Cheers,<br>Lukas</blockquote><div><br><br>&nbsp;</div><br>Great Lukas thanks!<br>Leandro<br>