close
Warning:
Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Mar 24, 2011, 12:21:19 PM (15 years ago)
- Author:
-
Víctor de Buen Remiro
- Comment:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
initial
|
v1
|
|
| 11 | 11 | }); |
| 12 | 12 | }}} |
| | 13 | '''ouput:''' |
| | 14 | {{{ |
| | 15 | lost objects = 12 in 4 iterations |
| | 16 | lost objects by iteration= 3 |
| | 17 | }}} |
| 13 | 18 | |
| | 19 | However {{{Excel.ReadText}}} doesn't lost any object |
| | 20 | {{{ |
| | 21 | #!cpp |
| | 22 | Real CheckMemoryLeakInCycle (4, Real(Real void) |
| | 23 | { |
| | 24 | Real xls = Excel.Open("../test_0001/data.xls"); |
| | 25 | Real Excel.ActivateWS(xls,1); |
| | 26 | Text cell = Excel.ReadText(xls,[[1, 1]]); |
| | 27 | Real Excel.Close(xls); |
| | 28 | True |
| | 29 | }); |
| | 30 | }}} |
| | 31 | |
| | 32 | '''ouput:''' |
| | 33 | {{{ |
| | 34 | lost objects = 0 in 4 iterations |
| | 35 | lost objects by iteration= 0 |
| | 36 | }}} |