<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: JavaScript Engine for Windows Phone</title>
	<atom:link href="http://codecube.net/2011/10/javascript-engine-for-windows-phone/feed/" rel="self" type="application/rss+xml" />
	<link>http://codecube.net/2011/10/javascript-engine-for-windows-phone/</link>
	<description>Joel Martinez' weblog</description>
	<lastBuildDate>Tue, 16 Apr 2013 05:18:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Kevin</title>
		<link>http://codecube.net/2011/10/javascript-engine-for-windows-phone/comment-page-1/#comment-5103</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 16 Apr 2013 05:18:15 +0000</pubDate>
		<guid isPermaLink="false">http://codecube.net/?p=517#comment-5103</guid>
		<description><![CDATA[Great, but  does it work in WinCE6.0?]]></description>
		<content:encoded><![CDATA[<p>Great, but  does it work in WinCE6.0?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Janak</title>
		<link>http://codecube.net/2011/10/javascript-engine-for-windows-phone/comment-page-1/#comment-1471</link>
		<dc:creator>Janak</dc:creator>
		<pubDate>Wed, 14 Mar 2012 12:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://codecube.net/?p=517#comment-1471</guid>
		<description><![CDATA[That&#039;s really great. It is working fine in most of the cases. 

But when I try to execute following script it is giving InvalidProgramException. Please do needful to me:

string scriptData = @&quot;function ShowMessage(){ var a = new SayHelloClass();
a.SayHello(); // This is giving invalidprogramexception.
}

C# code is:

public class SayHelloClass()
{
   public SayHelloClass()
   {
   }
   public SayHello()
   {
      MessageBox.Show(&quot;Hello!&quot;);
   }
}

I&#039;ve registered global settings as follow:
JintEngine engine = new JintEngine();
 JsConstructor ctor = engine.Global.Marshaller.MarshalType(typeof(HelperClass));
((JsObject)engine.Global)[&quot;HelperClass&quot;] = ctor;

and calling the ShowMessage API as follow:
engine.Run(&quot;ShowMessage()&quot;);

I&#039;ve tried to debug and it is giving exception from NativeMethod.cs class:
 visitor.Return( m_impl(visitor.Global, that, parameters) );

What Am I missing here? Does it due to reflection limitations? How can I overcome to this problem?]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s really great. It is working fine in most of the cases. </p>
<p>But when I try to execute following script it is giving InvalidProgramException. Please do needful to me:</p>
<p>string scriptData = @&#8221;function ShowMessage(){ var a = new SayHelloClass();<br />
a.SayHello(); // This is giving invalidprogramexception.<br />
}</p>
<p>C# code is:</p>
<p>public class SayHelloClass()<br />
{<br />
   public SayHelloClass()<br />
   {<br />
   }<br />
   public SayHello()<br />
   {<br />
      MessageBox.Show(&#8220;Hello!&#8221;);<br />
   }<br />
}</p>
<p>I&#8217;ve registered global settings as follow:<br />
JintEngine engine = new JintEngine();<br />
 JsConstructor ctor = engine.Global.Marshaller.MarshalType(typeof(HelperClass));<br />
((JsObject)engine.Global)["HelperClass"] = ctor;</p>
<p>and calling the ShowMessage API as follow:<br />
engine.Run(&#8220;ShowMessage()&#8221;);</p>
<p>I&#8217;ve tried to debug and it is giving exception from NativeMethod.cs class:<br />
 visitor.Return( m_impl(visitor.Global, that, parameters) );</p>
<p>What Am I missing here? Does it due to reflection limitations? How can I overcome to this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Martinez</title>
		<link>http://codecube.net/2011/10/javascript-engine-for-windows-phone/comment-page-1/#comment-1442</link>
		<dc:creator>Joel Martinez</dc:creator>
		<pubDate>Fri, 03 Feb 2012 04:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://codecube.net/?p=517#comment-1442</guid>
		<description><![CDATA[This is now available on github: https://github.com/joelmartinez/Jint.Phone]]></description>
		<content:encoded><![CDATA[<p>This is now available on github: <a href="https://github.com/joelmartinez/Jint.Phone" rel="nofollow">https://github.com/joelmartinez/Jint.Phone</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Domenic Datti</title>
		<link>http://codecube.net/2011/10/javascript-engine-for-windows-phone/comment-page-1/#comment-1418</link>
		<dc:creator>Domenic Datti</dc:creator>
		<pubDate>Tue, 22 Nov 2011 14:35:15 +0000</pubDate>
		<guid isPermaLink="false">http://codecube.net/?p=517#comment-1418</guid>
		<description><![CDATA[Holy crap this has huge potential...]]></description>
		<content:encoded><![CDATA[<p>Holy crap this has huge potential&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Martinez</title>
		<link>http://codecube.net/2011/10/javascript-engine-for-windows-phone/comment-page-1/#comment-1413</link>
		<dc:creator>Joel Martinez</dc:creator>
		<pubDate>Tue, 15 Nov 2011 23:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://codecube.net/?p=517#comment-1413</guid>
		<description><![CDATA[yes, I&#039;m absolutely going to share this. Just need to find the time as its actually two things, antlr and jint that I had to port.]]></description>
		<content:encoded><![CDATA[<p>yes, I&#8217;m absolutely going to share this. Just need to find the time as its actually two things, antlr and jint that I had to port.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saar</title>
		<link>http://codecube.net/2011/10/javascript-engine-for-windows-phone/comment-page-1/#comment-1411</link>
		<dc:creator>Saar</dc:creator>
		<pubDate>Mon, 14 Nov 2011 22:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://codecube.net/?p=517#comment-1411</guid>
		<description><![CDATA[Sounds very interesting do you mind sharing what you got so far on GitHub?

Thank You,
-saar]]></description>
		<content:encoded><![CDATA[<p>Sounds very interesting do you mind sharing what you got so far on GitHub?</p>
<p>Thank You,<br />
-saar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krishnakant</title>
		<link>http://codecube.net/2011/10/javascript-engine-for-windows-phone/comment-page-1/#comment-1409</link>
		<dc:creator>krishnakant</dc:creator>
		<pubDate>Wed, 09 Nov 2011 06:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://codecube.net/?p=517#comment-1409</guid>
		<description><![CDATA[i am also trying for the same...
can you please share how did you manage to do this...]]></description>
		<content:encoded><![CDATA[<p>i am also trying for the same&#8230;<br />
can you please share how did you manage to do this&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
