-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
4.8.0
-
None
-
5679d966b396523a1d555a4029e7da05515be2fa 57179745d245529b23ef2088012ecc3fde6e15ba
I am testing for memory leaks by seeing how the number of allocated heap cells and handles varies with the number of times a use case is repeated. Symbian gives a print of this information at app exit time, eg "C:\sys\bin\standarddialogs.exe exiting with 397 allocated cells, 52 handles".
In this case I was looking at examples\dialogs\standarddialogs. Deary me, the results are not pretty...
| test | result |
| QInputDialog::getInt() | Leaks |
| QInputDialog::getDouble() | Leaks |
| QInputDialog::getItem() | Leaks |
| QInputDialog::getText() | Leaks, but maybe stabilizing after many repeats |
| QColorDialog::getColor() | No leaks |
| QFontDialog::getFont() | Leaks |
| QFileDialog::getExistingDirectory() | No leaks |
| QFileDialog::getOpenFileName() | Leaks |
| QFileDialog::getOpenFileNames() | Leaks |
| QFileDialog::getSaveFileName() | No leaks |
| QMessageBox::critical() | Leaks |
| QMessageBox::information() | Leaks |
| QMessageBox::question() | Leaks |
| QMessageBox::warning() | Leaks |
| QErrorMessage::showMessage() | No leaks |
Where a results is shown as "Leaks", the number of heap cells and handles appears to be increasing linearly with the number of times the test case is run.