Skip to content
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

NullReference Exception - Object reference not set to an instance of an object. [DNET737] #679

Closed
firebird-automations opened this issue Feb 17, 2017 · 5 comments

Comments

@firebird-automations
Copy link

Submitted by: Donald Jansen (croseven)

Is related to DNET698

Attachments:
source.cs
Screenshot.jpg

Here is the exception I recieve from the http://Firebird.net library and when this happens the application start to hung and I have to restart it. I have put in numerous checks for null in the application with logging in case any variable is null however it always end up with this exception

Message: Object reference not set to an instance of an object.
HResult: -2147467261
Source: FirebirdSql.Data.FirebirdClient
StackTrace: at FirebirdSql.Data.Client.Managed.Version10.GdsStatement.SendExecuteToBuffer() in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\Client\Managed\Version10\GdsStatement.cs:line 600
at FirebirdSql.Data.Client.Managed.Version10.GdsStatement.Execute() in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\Client\Managed\Version10\GdsStatement.cs:line 304
at FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteCommand(CommandBehavior behavior, Boolean returnsSet) in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbCommand.cs:line 1221
at FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteReader(CommandBehavior behavior) in C:\Users\Jiri\Documents\devel\NETProvider\working\Provider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbCommand.cs:line 539
at FirebirdConnector.FirebirdConnector.GetLastRecords()
TargetSite: Void SendExecuteToBuffer()

@firebird-automations
Copy link
Author

Commented by: Donald Jansen (croseven)

Here attached is the source code where the method is that is causing the problem.

The program polls the database every 10 seconds to update a screen

@firebird-automations
Copy link
Author

Modified by: Donald Jansen (croseven)

Attachment: source.cs [ 13069 ]

Attachment: Screenshot.jpg [ 13070 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: vNext - Finalizers [ 10807 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Link: This issue is related to DNET698 [ DNET698 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Fix Version: vNext [ 10804 ]

Fix Version: vNext - Finalizers [ 10807 ] =>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants