<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=000103214-31102007>Hi 
there,</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007>&nbsp;&nbsp;&nbsp; I saw some strange result when I use 
some code like this:</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007>someMagmaCollection</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007>&nbsp;&nbsp;&nbsp; 
where:[:reader|&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
reader<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read: 
#companyName<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
to:'ZZZ']<BR>&nbsp;&nbsp;&nbsp; distinct: true<BR>&nbsp;&nbsp;&nbsp; sortBy: 
#companyName<BR>&nbsp;&nbsp;&nbsp; descending: false.</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=000103214-31102007>then the 
result of that is used like:</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=000103214-31102007>queryResult 
</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007>&nbsp;&nbsp;&nbsp; copyFrom: 
firstDesiredItemOfResult<BR>&nbsp;&nbsp;&nbsp; to: 
lastDesiredItemOfResult</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=000103214-31102007>this last 
message is returning instantaneusly an empty array when in fact should not be 
empty. And seems to be only for the first send because if I resend the message, 
for instance manually in the debugger, I do get the right results for the next N 
(re)sends.</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007>&nbsp;&nbsp;&nbsp; How is expected to reach the result 
when you ask for it waiting for it if necessary?</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007>&nbsp;&nbsp;&nbsp; cheers,</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN 
class=000103214-31102007></SPAN></FONT>&nbsp;</DIV>
<DIV align=left><SPAN class=250542422-20122006>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left><?xml:namespace prefix 
= st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:PersonName 
ProductID="Sebastian Sastre&#13;" w:st="on"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Sebastian 
Sastre<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" 
/><o:p></o:p></SPAN></st1:PersonName></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></P></DIV></SPAN>
<DIV><FONT face="Trebuchet MS" size=2></FONT>&nbsp;</DIV></BODY></HTML>