Issue Details (XML | Word | Printable)

Key: DNET-845
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jiri Cincura
Reporter: Andreas Franz
Votes: 0
Watchers: 0

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

error 10054 on fbserver if I exit my application (FbRemoteEvent-usage)

Created: 29/Aug/18 08:59 AM   Updated: 29/Aug/18 11:38 AM
Component/s: ADO.NET Provider
Affects Version/s:
Fix Version/s:

Environment: Client: Windows 10 x64, Server: Windows Server 2016 with Firebird-Server

 Description  « Hide
Closing an application with FbRemoteEvent-usage causes an 10054 error in firebird.log. "CancelEvent" and "Dispose" has no effect. Seems connection is terminated hard on application exit.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jiri Cincura added a comment - 29/Aug/18 09:04 AM
Please provide a test code you're using.

Andreas Franz added a comment - 29/Aug/18 09:25 AM
Hallo Jiri,

I´m on VB .NET.

I´m registering FbRemoteEvent with

   Dim cs As New FbConnectionStringBuilder()
   cs.DataSource = datasource
   cs.Database = filename
   cs.UserID = "sysdba"
   cs.Password = "masterke"
   cs.Charset = "WIN1250"
   cs.Pooling = False
   revent=New FbRemoteEvent(cs.ToString)
   AddHandler revent.RemoteEventCounts, AddressOf LogEventRaised

and I stop Eventhandling with

   RemoveHandler revent.RemoteEventCounts, AddressOf LogEventRaised

before I close my application. After closing - error on server-side occurs.

regards, Andy

Jiri Cincura added a comment - 29/Aug/18 10:42 AM
Found it. Can you try with this build and confirm it's working for you as expected as well?

Andreas Franz added a comment - 29/Aug/18 11:02 AM
Wow - I´m impressed.

Yes - it works without any error now.

Thanks for your work,


Jiri Cincura added a comment - 29/Aug/18 11:38 AM
Good to hear that.