This project has moved and is read-only. For the latest updates, please go here.

System.AccessViolationException when attempting to run CiteProc-JS

Nov 20, 2012 at 11:34 PM

CiteProc-JS is a JavaScript CSL processor (

While attempting to embed it in a .NET app using Jurassic, I randomly encounter AccessViolationExceptions when Jurassic is attempting to generate the IL for citeproc.js

I've created a test VS2010 project the exhibits the behavior here:

It simply loads and executes 3 of the necessary Citeproc-JS files. These are taken straight from the CiteProc-JS demo code in the mercurial repository.

I've compiled Jurassic from commit 2db8531adca3.

Nov 26, 2012 at 11:52 PM

When I wrote this, I was using a build of Jurassic compiled with a custom build of Mono ( Recompiling under VS2010 with .NET 4 caused the issue to go away as far as I can tell.

Nov 27, 2012 at 2:06 AM

I was going to look at this on the weekend, but I completely gapped.  Good to see my laziness paid off ;-)