Opened 15 years ago
Last modified 15 years ago
#1138 closed defect
Memory leak in Excel.ReadCell — at Version 1
| Reported by: | Víctor de Buen Remiro | Owned by: | Jorge |
|---|---|---|---|
| Priority: | highest | Milestone: | Mantainance |
| Component: | Excel API | Version: | head |
| Severity: | blocker | Keywords: | |
| Cc: |
Description (last modified by )
Next code shows how function Excel.ReadCell lost three objects in each iteration.
Real CheckMemoryLeakInCycle (4, Real(Real void)
{
Real xls = Excel.Open("../test_0001/data.xls");
Real Excel.ActivateWS(xls,1);
Anything cell = Excel.ReadCell(xls,[[1, 1]]);
Real Excel.Close(xls);
True
});
ouput:
lost objects = 12 in 4 iterations lost objects by iteration= 3
However Excel.ReadText doesn't lost any object
Real CheckMemoryLeakInCycle (4, Real(Real void)
{
Real xls = Excel.Open("../test_0001/data.xls");
Real Excel.ActivateWS(xls,1);
Text cell = Excel.ReadText(xls,[[1, 1]]);
Real Excel.Close(xls);
True
});
ouput:
lost objects = 0 in 4 iterations lost objects by iteration= 0
Note: See
TracTickets for help on using
tickets.
