Page 1 of 1

SubmitChanges throws Object reference not set to an instance of an object

Posted: Wed 20 Mar 2013 00:35
by TMelvin
I'm getting an unhandled NullReferenceException thrown after I've bee writing thousands of inserts. The coding is pretty simple and very typical as similar code is used in dozens of other locations successfully. In this particular case I've already 7,507 entries into this table.

at Devart.Data.Linq.Engine.c4.h(IObjectEntry A_0)
at Devart.Data.Linq.Engine.c4.j()
at Devart.Data.Linq.Engine.c4.b.b()
at Devart.Data.Linq.Engine.b4.a(ConflictMode A_0)
at Devart.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
at Devart.Data.Linq.DataContext.SubmitChanges()
....

I'm not sure where to even start to look for a solution in my code. I can also step over the SubmitChanges exception and carry on within the loop and have it successfully call and return from SubmitChanges on the next iteration of the loop. I've even been able to immediately just 'Continue' (continue in debugging in Visual Studio) on that very line and the exception on that very same line doesn't come back even though I still loop.

Devart.Data.dll version 5.0.661.0
Devart.Data.Linq.dll version 4.1.207.0
Devart.Data.PostgresSql.dll version 6.5.202.0
Devart.Data.PostgreSql.Linq.dll version 4.1.207.0

Visual Studio 2010, SP1
Windows 7 x64
Running against a PostgreSQL database version 8.3.23

Re: SubmitChanges throws Object reference not set to an instance of an object

Posted: Wed 20 Mar 2013 15:30
by MariiaI
We couldn't reproduce this issue. We have sent you a sample project to the e-mail address you provided in your forum profile, please check that the letter is not blocked by your mail filter. Please change the project, so that the issue could be reproduced, and send it back to us or send us your project.

Re: SubmitChanges throws Object reference not set to an instance of an object

Posted: Fri 22 Mar 2013 18:47
by TMelvin
I've verified my e-mail address, however I never received any project within any e-mail from you. Yes, I've checked my junk mail. Please resend the project and I'll reply ASAP.

Re: SubmitChanges throws Object reference not set to an instance of an object

Posted: Mon 25 Mar 2013 08:28
by MariiaI
We've sent you the sample again. Please check that the letter is not blocked by your mail filter again.
If there are any problems with this, please specify some other mail address where we can send the sample (you can contact us at 'support at devart dot com' for this).