<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>spidermonkeydotnet Work Item Rss Feed</title><link>http://www.codeplex.com/WorkItem/List.aspx?ProjectName=spidermonkeydotnet</link><description>spidermonkeydotnet Work Item Rss Description</description><item><title>COMMENTED ISSUE: RE: Attempting To Read or Write Protected Memory</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=spidermonkeydotnet&amp;WorkItemId=3732</link><description>REOPENING


Ok, so I tested the 0.1.4 version but (if stressed) the problem still remains.

It seems to be that some callbacks are performed on delegates that has been collected by the GC.

The script I ran was:
for (var i = 0; i &lt; 100000; i++)
{
    var c = new Customer();c.name = 'Franky';c.age =32;c.computeReduction();c.age
}

And the response was:
CallbackOnCollectedDelegate was detected
Message: A callback was made on a garbage collected delegate of type 'spidermonkey-dotnet!SpiderMonkey.JS+JS_ResolveDelegate::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at SpiderMonkey.JS.JS_EvaluateScript(IntPtr cx, IntPtr obj, String bytes, UInt32 length, String filename, UInt32 lineno, IntPtr rval)
   at smnettest.Program.Main(String[] args) in C:\tmp\smdn-0.1.4\smnet-test\Program.cs:line 97

- petter Comments: ** Comment from web user: wildfrog ** I tested the stable tree of the 6885 code release and the problem seems to have vanished. It was still present in the development tree.

- petter</description><author>wildfrog</author><pubDate>Wed, 27 Sep 2006 23:18:40 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: RE: Attempting To Read or Write Protected Memory 20060927111840P</guid></item><item><title>COMMENTED ISSUE: RE: Attempting To Read or Write Protected Memory</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=spidermonkeydotnet&amp;WorkItemId=3732</link><description>REOPENING


Ok, so I tested the 0.1.4 version but (if stressed) the problem still remains.

It seems to be that some callbacks are performed on delegates that has been collected by the GC.

The script I ran was:
for (var i = 0; i &lt; 100000; i++)
{
    var c = new Customer();c.name = 'Franky';c.age =32;c.computeReduction();c.age
}

And the response was:
CallbackOnCollectedDelegate was detected
Message: A callback was made on a garbage collected delegate of type 'spidermonkey-dotnet!SpiderMonkey.JS+JS_ResolveDelegate::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at SpiderMonkey.JS.JS_EvaluateScript(IntPtr cx, IntPtr obj, String bytes, UInt32 length, String filename, UInt32 lineno, IntPtr rval)
   at smnettest.Program.Main(String[] args) in C:\tmp\smdn-0.1.4\smnet-test\Program.cs:line 97

- petter Comments: ** Comment from web user: abstraktmethodz ** I just ran this test till my memory peaked, for several minutes.  No luck reproducing this.  I think there are some bad builds of the js32.dll engine running around, try grabbing a fresh copy from the stable tree.</description><author>abstraktmethodz</author><pubDate>Wed, 27 Sep 2006 01:28:00 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: RE: Attempting To Read or Write Protected Memory 20060927012800A</guid></item><item><title>CREATED ISSUE: RE: Attempting To Read or Write Protected Memory</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=spidermonkeydotnet&amp;WorkItemId=3732</link><description>REOPENING


Ok, so I tested the 0.1.4 version but (if stressed) the problem still remains.

It seems to be that some callbacks are performed on delegates that has been collected by the GC.

The script I ran was:
for (var i = 0; i &lt; 100000; i++)
{
    var c = new Customer();c.name = 'Franky';c.age =32;c.computeReduction();c.age
}

And the response was:
CallbackOnCollectedDelegate was detected
Message: A callback was made on a garbage collected delegate of type 'spidermonkey-dotnet!SpiderMonkey.JS+JS_ResolveDelegate::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at SpiderMonkey.JS.JS_EvaluateScript(IntPtr cx, IntPtr obj, String bytes, UInt32 length, String filename, UInt32 lineno, IntPtr rval)
   at smnettest.Program.Main(String[] args) in C:\tmp\smdn-0.1.4\smnet-test\Program.cs:line 97

- petter </description><author>abstraktmethodz</author><pubDate>Tue, 26 Sep 2006 17:02:25 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: RE: Attempting To Read or Write Protected Memory 20060926050225P</guid></item><item><title>COMMENTED ISSUE: RE: Attempting To Read or Write Protected Memory</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=spidermonkeydotnet&amp;WorkItemId=3691</link><description>Ok, so I tested the 0.1.4 version but (if stressed) the problem still remains.

It seems to be that some callbacks are performed on delegates that has been collected by the GC.

The script I ran was:
for (var i = 0; i &lt; 100000; i++)
{
    var c = new Customer();c.name = 'Franky';c.age =32;c.computeReduction();c.age
}

And the response was:
CallbackOnCollectedDelegate was detected
Message: A callback was made on a garbage collected delegate of type 'spidermonkey-dotnet!SpiderMonkey.JS+JS_ResolveDelegate::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at SpiderMonkey.JS.JS_EvaluateScript(IntPtr cx, IntPtr obj, String bytes, UInt32 length, String filename, UInt32 lineno, IntPtr rval)
   at smnettest.Program.Main(String[] args) in C:\tmp\smdn-0.1.4\smnet-test\Program.cs:line 97

- petter Comments: ** Comment from web user: wildfrog ** Is still get the AccessViolationExpection running changeset 6765. The more 'resource challenged' my computer is, the easier it is to reproduce, so I still believe that it's calling back on collected delegates (or similar).

- petter</description><author>wildfrog</author><pubDate>Tue, 26 Sep 2006 06:54:04 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: RE: Attempting To Read or Write Protected Memory 20060926065404A</guid></item><item><title>CLOSED ISSUE: RE: Attempting To Read or Write Protected Memory</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=spidermonkeydotnet&amp;WorkItemId=3691</link><description>Ok, so I tested the 0.1.4 version but (if stressed) the problem still remains.

It seems to be that some callbacks are performed on delegates that has been collected by the GC.

The script I ran was:
for (var i = 0; i &lt; 100000; i++)
{
    var c = new Customer();c.name = 'Franky';c.age =32;c.computeReduction();c.age
}

And the response was:
CallbackOnCollectedDelegate was detected
Message: A callback was made on a garbage collected delegate of type 'spidermonkey-dotnet!SpiderMonkey.JS+JS_ResolveDelegate::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at SpiderMonkey.JS.JS_EvaluateScript(IntPtr cx, IntPtr obj, String bytes, UInt32 length, String filename, UInt32 lineno, IntPtr rval)
   at smnettest.Program.Main(String[] args) in C:\tmp\smdn-0.1.4\smnet-test\Program.cs:line 97

- petter Comments: fixed changeset 6765</description><author>abstraktmethodz</author><pubDate>Mon, 25 Sep 2006 22:53:42 GMT</pubDate><guid isPermaLink="false">CLOSED ISSUE: RE: Attempting To Read or Write Protected Memory 20060925105342P</guid></item><item><title>CREATED ISSUE: RE: Attempting To Read or Write Protected Memory</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=spidermonkeydotnet&amp;WorkItemId=3691</link><description>Ok, so I tested the 0.1.4 version but (if stressed) the problem still remains.

It seems to be that some callbacks are performed on delegates that has been collected by the GC.

The script I ran was:
for (var i = 0; i &lt; 100000; i++)
{
    var c = new Customer();c.name = 'Franky';c.age =32;c.computeReduction();c.age
}

And the response was:
CallbackOnCollectedDelegate was detected
Message: A callback was made on a garbage collected delegate of type 'spidermonkey-dotnet!SpiderMonkey.JS+JS_ResolveDelegate::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at SpiderMonkey.JS.JS_EvaluateScript(IntPtr cx, IntPtr obj, String bytes, UInt32 length, String filename, UInt32 lineno, IntPtr rval)
   at smnettest.Program.Main(String[] args) in C:\tmp\smdn-0.1.4\smnet-test\Program.cs:line 97

- petter </description><author>abstraktmethodz</author><pubDate>Mon, 25 Sep 2006 14:43:39 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: RE: Attempting To Read or Write Protected Memory 20060925024339P</guid></item><item><title>CLOSED ISSUE: JSVAL_IS_STRING</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=spidermonkeydotnet&amp;WorkItemId=3433</link><description>** Add all missing macros

Howdy, I've noticed that you are missing the C# equivlent of this macro maybe in the next release you could add it. Thx :) </description><author>abstraktmethodz</author><pubDate>Wed, 20 Sep 2006 02:58:36 GMT</pubDate><guid isPermaLink="false">CLOSED ISSUE: JSVAL_IS_STRING 20060920025836A</guid></item><item><title>CREATED ISSUE: JSVAL_IS_STRING</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=spidermonkeydotnet&amp;WorkItemId=3433</link><description>** Add all missing macros

Howdy, I've noticed that you are missing the C# equivlent of this macro maybe in the next release you could add it. Thx :) </description><author>abstraktmethodz</author><pubDate>Tue, 19 Sep 2006 13:46:42 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: JSVAL_IS_STRING 20060919014642P</guid></item><item><title>CLOSED ISSUE: Attempting To Read or Write Protected Memory?</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=spidermonkeydotnet&amp;WorkItemId=3291</link><description>I am currently developing a chat server for Ares P2P in vb.net and I have been struggling with embedding SpiderMonkey into it for some time now. I am taking a rather different approach to actually initializing the runtime and loading the scripts. but I am still following the same basic procedure to do so.. the runtime seems to initialize with a problem, it is during the loading of the script that I begin running into this problem. I am trying to assign a "global_Class" JSClass that has members such as alert, print, topic, hostname, sendPM and many objects like String, Array, Math, and more that the server actually displays to the chatroom, or to a given user. I have implemented a method named "JS_Finalize" which has a different routine then actually destroying the runtime.. and is as follows...
Public Shared Sub JS_Finalize(ByVal cx As IntPtr, ByVal obj As IntPtr, ByVal name As String)
        Dim attrsp As IntPtr = IntPtr.Zero
        Dim foundp As IntPtr = IntPtr.Zero
        JS.JS_GetPropertyAttributes(cx, obj, name, attrsp, foundp)
        Dim attr As Int32 = (JS.JSPROP_PERMANENT &amp; JS.JSPROP_READONLY)
        JS.JS_SetPropertyAttributes(cx, obj, name, Convert.ToUInt32(attr), foundp)
    End Sub
now I am however fairly new to spidermonkey but I seem to get the basic Idea down. If you could privide me with information as to why that is throwing this exception or would like to see my "JS_InitScript" method to see exactly how I am implementing this routine I would be glad to post again.
Thanks in advance.
Ryan Comments: user passed in null values to output parameters.</description><author>abstraktmethodz</author><pubDate>Fri, 15 Sep 2006 21:05:00 GMT</pubDate><guid isPermaLink="false">CLOSED ISSUE: Attempting To Read or Write Protected Memory? 20060915090500P</guid></item><item><title>CREATED ISSUE: Attempting To Read or Write Protected Memory?</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=spidermonkeydotnet&amp;WorkItemId=3291</link><description>I am currently developing a chat server for Ares P2P in vb.net and I have been struggling with embedding SpiderMonkey into it for some time now. I am taking a rather different approach to actually initializing the runtime and loading the scripts. but I am still following the same basic procedure to do so.. the runtime seems to initialize with a problem, it is during the loading of the script that I begin running into this problem. I am trying to assign a "global_Class" JSClass that has members such as alert, print, topic, hostname, sendPM and many objects like String, Array, Math, and more that the server actually displays to the chatroom, or to a given user. I have implemented a method named "JS_Finalize" which has a different routine then actually destroying the runtime.. and is as follows...
Public Shared Sub JS_Finalize(ByVal cx As IntPtr, ByVal obj As IntPtr, ByVal name As String)
        Dim attrsp As IntPtr = IntPtr.Zero
        Dim foundp As IntPtr = IntPtr.Zero
        JS.JS_GetPropertyAttributes(cx, obj, name, attrsp, foundp)
        Dim attr As Int32 = (JS.JSPROP_PERMANENT &amp; JS.JSPROP_READONLY)
        JS.JS_SetPropertyAttributes(cx, obj, name, Convert.ToUInt32(attr), foundp)
    End Sub
now I am however fairly new to spidermonkey but I seem to get the basic Idea down. If you could privide me with information as to why that is throwing this exception or would like to see my "JS_InitScript" method to see exactly how I am implementing this routine I would be glad to post again.
Thanks in advance.
Ryan </description><author>abstraktmethodz</author><pubDate>Fri, 15 Sep 2006 20:49:00 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Attempting To Read or Write Protected Memory? 20060915084900P</guid></item></channel></rss>