[VNET 0004270]: Memoryleak in FindRange

Thomas Flemming tf at ttqv.com
Tue May 12 06:56:29 CDT 2009


Hi Ruslan,

is there already an update with this fix?

Best Regards,
Tom


Mantis Bug Tracker schrieb:
> A NOTE has been added to this issue. 
> ====================================================================== 
> http://www.valentina-db.com/bt/view.php?id=4270 
> ====================================================================== 
> Reported By:                Flemming
> Assigned To:                ivan
> ====================================================================== 
> Project:                    VNET
> Issue ID:                   4270
> Category:                   API
> Reproducibility:            always
> Severity:                   crash
> Priority:                   normal
> Status:                     assigned
> ====================================================================== 
> Date Submitted:             2009-04-27 17:37 CEST
> Last Modified:              2009-04-28 13:51 CEST
> ====================================================================== 
> Summary:                    Memoryleak in FindRange
> Description: 
> There is a serious memoryleak somewhere in this FindRange-Function.
> Please use testdata and testproject from Issue:
> "0004228: Three different select-methods, all slow..." 
> 
> Then do the following change:
> 
> Just put the TestFindRange() in a loop:
> 
> While True
>      TestFindRange()
> End While
> 
> and on my mashine after 2 min all 2GB memory is done and windows is
> crashing.
> ======================================================================
> Relationships       ID      Summary
> ----------------------------------------------------------------------
> child of            0004228 Tthree different select-methods, all sl...
> ====================================================================== 
> 
> ---------------------------------------------------------------------- 
>  (0004437) ivan (manager) - 2009-04-28 13:51
>  http://www.valentina-db.com/bt/view.php?id=4270#c4437 
> ---------------------------------------------------------------------- 
> 1. There is unmanaged resource under IVBitSet object. So it should be freed
> (explicitly calling IVBitSet::Dispose() method) by you.
> 
> It should be something like:
> resultSet = fldCat.FindRange(False, 0, e.max_cat, True)
> ... do something with resultSet ...
> resultSet.Dispose()
> 
> 2. vSet::Dispose() contained a bug. It is fixed now and will be available
> for download in nearest time. 
> 
> Issue History 
> Date Modified    Username       Field                    Change               
> ====================================================================== 
> 2009-04-27 17:37 Flemming       New Issue                                    
> 2009-04-27 17:48 ruslan         Relationship added       child of 0004228    
> 2009-04-27 17:48 ruslan         Status                   new => assigned     
> 2009-04-27 17:48 ruslan         Assigned To               => ivan            
> 2009-04-28 13:51 ivan           Note Added: 0004437                          
> ======================================================================
> 
> 
> __________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 4038 (20090427) __________
> 
> E-Mail wurde gepr�ft mit ESET NOD32 Antivirus.
> 
> http://www.eset.com
> 
> 
> 
> 

-- 
/****************************************
**   Dipl.-Ing. Thomas Flemming
**   Software Development
**
**   Touratech AG
**   Auf dem Zimmermann 7-9
**   D-78078 Niedereschach
**
**   mail  tf at ttqv.com
**   fon   +49 (0) 7728 9279-206
**   fax   +49 (0) 7728 9279-29
**
**   http://www.ttqv.com
**   http://www.touratech.de
**
**   ... und immer dem Pfeil nach!
***************************************/


More information about the Valentina mailing list