[Firebird-net-provider] [FB-Tracker] Created: (DNET-582) Random bug in finalizing DbCommands

2014-12-19 Thread Hennadii (JIRA)
Random bug in finalizing DbCommands
---

 Key: DNET-582
 URL: http://tracker.firebirdsql.org/browse/DNET-582
 Project: .NET Data provider
  Issue Type: Bug
  Components: ADO.NET Provider
Affects Versions: 4.5.2.0
 Environment: Windows Server 2008 R2. firebird 2.5.3 x64 embedded
Reporter: Hennadii
Assignee: Jiri Cincura


Several times I've experienced randomly reproduced bug. It has some different 
symptoms: OOM, unhandled crash and so on.
But all this times I had the same stack:
1b56edb0 773a186a [FaultingExceptionFrame: 1b56edb0] 
1b56f300 07fe9a9920b0 
FirebirdSql.Data.FirebirdClient.FbCommand.Release() 
[*\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbCommand.cs @ 821]
1b56f340 07fe9a9a47f5 
FirebirdSql.Data.FirebirdClient.FbCommand.Dispose(Boolean) 
[*\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbCommand.cs @ 384]
1b56f3a0 07fef71cc8da System.ComponentModel.Component.Finalize()
1b56f798 07fef9479d56 [DebuggerU2MCatchHandlerFrame: 
1b56f798] 

It is locally built library so I'll provide lines referred above:
FbCommand.cs @ 821
if (this.connection != null  this.connection.State == 
ConnectionState.Open)
{
this.connection.InnerConnection.RemovePreparedCommand(this);
}
FbCommand.cs @ 384
   try
{
// Release any unmanaged resources
this.Release();

I've added crutch to the FbCommand.Release method as in other places, just 
handle exception without any code. But I think it is not the best way to fix it.

   try
{
// old code
}
catch // added
{
}
finally
{
base.Dispose(disposing);
}

Don't you think that catching swallowing exceptions in dispose methods is a bad 
way to handle errors?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] EF Migrations

2014-12-19 Thread Mercea Paul
On 2014.11.06 3:06 PM, Jiří Činčura wrote:
 Hi *,

 Anybody here willing to give EF Migrations a try? I'm getting close to first 
 implementation.

I'm trying to add support for Firebird db for existing app on SQL 
Express, and, first run of the application was with no errors and 
created the database.
I'll going to try migrations steps and give feedback.

Thanks Jiri

Paul MERCEA
___
E-mail: paul.mer...@almexa.ro
___


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider