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

FbRemoteEvent event fires in non-GUI thread [DNET170] #178

Closed
firebird-automations opened this issue Jul 30, 2008 · 6 comments
Closed

FbRemoteEvent event fires in non-GUI thread [DNET170] #178

firebird-automations opened this issue Jul 30, 2008 · 6 comments

Comments

@firebird-automations
Copy link

Submitted by: Pavel (chpasha)

It seems like handling of RemoteEventCounts-Event of the FbRemoteEvent class occurs in other than calling thread. It means, accessing some outside objects inside FbRemoteEventEventHandler is not thread safe (and this fact is not obvious).

Commits: 17b734e

@firebird-automations
Copy link
Author

Modified by: @cincuranet

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

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Yes, you're right. I'm now playing with synchronization, so in UI you will be not forced to do it. Anyway the event handler is calling method(s) that goes inside code and there's a lock hold by thread listening for events. So the synchronized event handler stucks in deadlock. I'll have to move synchronization to higher levels.

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Hello, can you check <http://cid-bdb67deba4c656e5.skydrive.live.com/self.aspx/Ve%c5%99ejn%c3%a9/FirebirdClient|_SynchronizedEvents/FirebirdSql.Data.FirebirdClient.dll> build. I've changed locking schema (I hope it's not too weak) and added synchronization inside FirebirdClient, so you don't need to do it in UI.

@firebird-automations
Copy link
Author

Commented by: @cincuranet

rev.704

@firebird-automations
Copy link
Author

Modified by: @cincuranet

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

resolution: Fixed [ 1 ]

Fix Version: 2.5.0 Alpha 3 [ 10261 ]

Fix Version: 2.5.0 [ 10170 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Fix Version: 2.5.0 [ 10170 ] =>

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