Hi All,<br><br>This is my first post here. I have been experimenting with the Redland library using .Net 2.0/C#/VS2005 and I've been getting the same error several times now, so I'm probably doing something wrong here. Perhaps someone can help me out here.
<br><br>I'm working on a very simple query, with the following code:<br><br>// read a simple rdf document<br>string a = "<a href="http://www.dajobe.org/foaf.rdf">http://www.dajobe.org/foaf.rdf</a>";<br>parser.ParseIntoModel
(model, a);<br><br>// create the query<br>string querystring = @"PREFIX rdf: <<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#">http://www.w3.org/1999/02/22-rdf-syntax-ns#</a>><br>PREFIX foaf: <<a href="http://xmlns.com/foaf/0.1/">
http://xmlns.com/foaf/0.1/</a>><br>SELECT *<br>WHERE { ?x rdf:type foaf:Person . ?x foaf:name ?name }";<br><br>// execute <br>QueryResults qr = model.Execute(new Query(querystring));<br><br>It results in an error in qr stating:
<br>'qr.Current' threw an exception of type 'System.AccessViolationException'<br><br>Is this a binding/memory problem?<br><br>Are there some example applications written in C# (besides the examples in the bindings archive) published on the web?
<br><br>Greetings,<br>Arnoud<br> <br>