|
From: Rob V. <rv...@do...> - 2013-01-09 12:17:22
|
Thanks for spotting this, tracked and fixed as CORE-300 [1] The NPE from MultiDictionary is a weird one and was previously discussed as CORE-292 [2] It's a one time check that the MultiDictionary does to determine whether it should support null keys and is handled so VS should not really report it as unhanded (though it may report it if you have break on thrown set). Since a standard Graph has 7 MultiDictionaries in it you can get a lot of these when running stuff in debug mode. As it's a one time initialization thing it should have minimal effect on performance. Weirdly enough if the PDBs for VDS.Common are present VS will not break on this error (unless you have break on thrown set), this was the resolution for that bug and based on feedback I decided to start including the PDBs in the NuGet packages to aid end user debugging of issues (mean they get more detailed stack traces with line numbers etc.) Rob [1] http://dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=300 [2] http://dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=292 On 1/5/13 5:51 PM, "Tomasz Pluskiewicz" <tom...@gm...> wrote: >Hi Rob > >I am having additional issues with running my update query. > >An equivalent select (without graph ?g {}) returns some data. However >when I try to create new graphs nothing happens. > >I started debugging and discovered that when evaluating the insert >command, all the results are skipped at InserCommand.cs. > >The problem is that VDS.RDF.Query.Algebra.Set holds variable names >without the question mark and in the insert command they are prefixed. > >The quick fix is to add a Substring(1) call when looking for graph >variablt in the set. Will similar change be required elsewhere in the >code? > >Regards, >Tom > >PS >When I went into debugger I and enable breaking on exceptions thrown I >seem to be getting a lot of Null pointer exceptions in >MultiDictionary. This doesn't seem to be the cause as I had though >initially but definitiely will have adverse effects on performance. > >-------------------------------------------------------------------------- >---- >Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >MVPs and experts. SALE $99.99 this month only -- learn more at: >http://p.sf.net/sfu/learnmore_122912 >_______________________________________________ >dotNetRDF-bugs mailing list >dot...@li... >https://lists.sourceforge.net/lists/listinfo/dotnetrdf-bugs |