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

StackOverflowException when FbDataReader is disposed from FbCommand and has CommandBehavior.CloseConnection [DNET749] #691

Closed
firebird-automations opened this issue Mar 30, 2017 · 9 comments

Comments

@firebird-automations
Copy link

Submitted by: Donald Jansen (croseven)

Attachments:
FirebirdConnector.cs
Untitled.png
App.config

The following exception is being thrown, and is not handled by a try...catch...finaly

System.StackOverflowException was unhandled
Message: An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

There is no stacktrace available with this exception

The exception seems to come from the DataReader.Read()
If the DataReader is empty it is thrown directly,
if the DataReader has rows then it is thrown after the last row was handled

@firebird-automations
Copy link
Author

Commented by: Donald Jansen (croseven)

This is the source code, the error seems to come from while (result.Read()).

@firebird-automations
Copy link
Author

Modified by: Donald Jansen (croseven)

Attachment: FirebirdConnector.cs [ 13082 ]

@firebird-automations
Copy link
Author

Commented by: Donald Jansen (croseven)

The screenshot add did not work, but here is one

@firebird-automations
Copy link
Author

Modified by: Donald Jansen (croseven)

Attachment: Untitled.png [ 13083 ]

@firebird-automations
Copy link
Author

Modified by: Donald Jansen (croseven)

Attachment: App.config [ 13084 ]

@firebird-automations
Copy link
Author

Commented by: Donald Jansen (croseven)

a change from
var result = command.ExecuteReader(CommandBehavior.CloseConnection);
to
var result = command.ExecuteReader();

Seems to be a work around, I am guessing the issue comes from 'CommandBehavior.CloseConnection'

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Version: 5.8.1.0 [ 10811 ]

summary: System.StackOverflowException was unhandled => StackOverflowException when FbDataReader is disposed from FbCommand and has CommandBehavior.CloseConnection

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: In Progress [ 3 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: vNext [ 10812 ]

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