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
Operations

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: 6.2.0.0
Fix Version/s: 6.3.0.0

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


 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
   cs.Port=4050
   revent=New FbRemoteEvent(cs.ToString)
   revent.QueueEvents({"NEUTERMIN"})
   AddHandler revent.RemoteEventCounts, AddressOf LogEventRaised

and I stop Eventhandling with

   revent.CancelEvents
   RemoveHandler revent.RemoteEventCounts, AddressOf LogEventRaised
   revent.Dispose

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 http://www.uschovna.cz/zasilka/DPHRF9HEHUIXG3U4-PSD/ 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,

Andy

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