Because i need to debug the embedded scripts, I changed from
ExecuteFile(..) to RunFile(..), but the application will report "Common
Language Runtime Detected an Invalid Program". I spent some time
finding the reason. If i add statements such as "return False" "return
1" into the script, using RunFile(...) method will report the error,
while executeFile works fine. The effect of using "IronPythonConsole
scriptFilePath&quot; just like using RunFile(...) method. I don't know why.<br><br><div><span class="gmail_quote">2005/11/4, Martin Maly &lt;<a href="mailto:Martin.Maly@microsoft.com">Martin.Maly@microsoft.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div align="left" dir="ltr"><span><font color="#800000" face="Verdana" size="2">Because it it generated as a code snippet into the snippet 
assembly which doesn't have association with the source file and therefore the 
debugger cannot make the connection between the code and the source 
file.</font></span></div>
<div align="left" dir="ltr"><span><font color="#800000" face="Verdana" size="2"></font></span>&nbsp;</div>
<div align="left" dir="ltr"><span><font color="#800000" face="Verdana" size="2">I'm going to look into whether this could get 
changed/fixed.</font></span></div>
<div align="left" dir="ltr"><span><font color="#800000" face="Verdana" size="2"></font></span>&nbsp;</div>
<div align="left" dir="ltr"><span><font color="#800000" face="Verdana" size="2">Martin</font></span></div></blockquote></div>