New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullReferenceException [DNET617] #578
Comments
Commented by: @cincuranet It's impossible to be only this line. Somebody needs to call this method. |
Commented by: Rand Random (rand.random) Here a screenshot of the message: |
Commented by: @cincuranet Don't know about your VS settings or environment. But somebody really needs to call this method. Unless you provide a test case or further information I can't do anything. |
Commented by: Rand Random (rand.random) Seems like a raise condition to me... Here is some code where I am "always" getting the exception:
The problem doesn't occur if I wrap the fbCommand inside a using block (so maybe some cleanup job) and it doesn't occur as frequently when I reduce the for to "only" make 100 iterations. |
Commented by: @cincuranet For sure you should dispose the commands. Does the NRE happen on finalizer thread? |
Commented by: Rand Random (rand.random) How would I check this? |
Commented by: @cincuranet Well, check on what thread the exception was thrown. |
Commented by: Rand Random (rand.random) It seems so, I have written the CurrentThread into the watch window and that's what I see Thread.CurrentThread {System.Threading.Thread} System.Threading.Thread |
Commented by: @cincuranet Can you share a test case? No matter the # of iterations it's fine for me. Simple console app is enough. |
Modified by: @cincuranet |
Modified by: @cincuranetstatus: Open [ 1 ] => In Progress [ 3 ] |
Modified by: @cincuranetstatus: In Progress [ 3 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: vNext [ 10704 ] |
Submitted by: Rand Random (rand.random)
Is related to DNET619
I updated to the latest version of FB .Net Provider.
And I am getting NullReferenceException with the following stacktrace
bei FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.Write(Int32 value) in c:\Users\Jiri\Documents\devel\NETProvider\working\NETProvider\src\FirebirdSql.Data.FirebirdClient\Client\Managed\Version10\GdsDatabase.cs:Zeile 1002.
(Yes its only this line)
The text was updated successfully, but these errors were encountered: