Unit tests on entity framework
------------------------------

                 Key: DNET-303
                 URL: http://tracker.firebirdsql.org/browse/DNET-303
             Project: .NET Data provider
          Issue Type: Improvement
    Affects Versions: 2.5.2
         Environment: Win7, net 4, vs 2010, EF4
            Reporter: Alexander Muylaert
            Assignee: Jiri Cincura
            Priority: Minor


Hi Jiri

I have hundreds of unittest running to check our logic.  Many of these tests 
restore an empty firebird DB and create a new EF model to this database.
At the end of each unit test, I'm calling the dispose method on the model.  
This is causing some issues on the model.

Some exceptions are triggered, sometimes it even blocks the unit tests...

inside class GdsStatement

      protected override void Free(int option)
        {
            if (FreeNotNeeded(option))
                return;

--  On the line below the app freezes. or throws an exception.
            lock (this.database.SyncObject)
            {
                DoFreePacket(option);
                (this.Database as 
GdsDatabase).DeferredPackets.Enqueue(ProcessFreeResponse);
            }
        }

I have traced it a little bit and it is caused by the deletion of the 
statements.  Remember an earlier bug I posted about the out of memory.
It looks like the database is disposed and later on some of the statements are 
still disposed.  Maybe you should flush the structure that holds the references 
to the "to-dispose" commands when you dispose the database?

Thanks

Alexander

-- 
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 Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to