Hello,<div><br></div><div>I&#39;m sending this email to get more information about a specific using of ironPython.</div><div>I&#39;m working on a Silverlight 4 project and I&#39;m using IronPython to execute script inside my C# code.</div>

<div><br></div><div>The main objective is to allow users to code an AI and send it into our application.</div><div>The AI will use the C# we made.</div><div>That&#39;s works fine. :)</div><div><br></div><div>But I want to prevent the user to create an infinite loop.</div>

<div>I browsed the Online documentation but I couldn&#39;t find any information about &quot;time out execution&quot;</div><div><br></div><div>Func&lt;bool&gt; func = scope.GetVariable&lt;Func&lt;bool&gt; &gt;(&quot;MainLoop&quot;);</div>

<div>this.Result = func().ToString();</div><div><br></div><div>this.Result will contain a string with the error of the Python Script if something wrong appended. ex: indentation or anything else.</div><div><br></div><div>

but I want to make the method scope.GetVariable&lt;&gt;() time out if the script contain an infinite loop.</div><div><br></div><div>Does anybody know something about that ?</div><div><br></div><div>Sincerely</div><div>-- <br>

Saeli Mathieu.<br><br>+33 6 45 32 78 47<br>{Epitech} 2012<br>Permanent GDL<br><a href="http://www.gamelab.epitech.net/">http://www.gamelab.epitech.net/</a><br>
</div>