Issue Details (XML | Word | Printable)

Key: DNET-737
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jiri Cincura
Reporter: Donald Jansen
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
.NET Data provider

NullReference Exception - Object reference not set to an instance of an object.

Created: 17/Feb/17 07:14 AM   Updated: 21/Feb/17 07:47 AM
Component/s: ADO.NET Provider
Affects Version/s:
Fix Version/s:

File Attachments: 1. Text File source.cs (6 kB)

Image Attachments:

1. Screenshot.jpg
(91 kB)
Environment: Windows 7.
Issue Links:

 Description  « Hide
 Here is the exception I recieve from the 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()

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Donald Jansen added a comment - 17/Feb/17 07:19 AM
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