Hello, guys.
I have some simple question.
I've built simple "Hello, World" like example application with Qt 4.6.3 in Carbide.C++ 2.6.0 (I upgraded it from 2.3 - "Help"->"Check for upfates", etc.).
I try to add memory leaks intentionally, but I don't see any ALLOC error messages when I close the application in Symbian emulator.
I've tried this with 3rd FP1/FP2, 5th emulators - same result.
If I add memory leaks in native Symbian C++ application code, I can see ALLOC message when I exit the app.
It makes me crazy - I don't understand what's going on.
I understand that Qt memory management differs from regular Symbian C++ approach, QObject tree of child objects, etc., but here I want to add memory leak in a simple way.
For example:
In main.cpp
or in QMainWindow based class:Code:int main(int argc, char *argv[]) { QApplication a(argc, argv); QLabel* pLabel = new QLabel; pLabel->setText(QString("blblblb")); QString* pString = new QString(1024, '.'); pString = new QString(1024, '.'); pString = NULL; QLabel* plabel = new QLabel("<h2><i>Hello</i><font color=red> World!</font></h2>"); plabel->showMaximized(); return a.exec(); }
If I write some code, like divide_by_zero - the application is closed with KERN-EXEC 3 - that's ok, but ALLOC message I cannot seeCode:QtNetworkTest::QtNetworkTest(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); QLineEdit* pNewEdit = new QLineEdit("blabla"); pNewEdit = new QLineEdit("blabla"); HBufC* pBuf = HBufC::NewL(100); HBufC* pBuf1 = HBufC::New(1000); char* pch = new char[200]; // class member creation ipNewLineEdit = new QLineEdit("nadadadad"); pNewEdit->setText(QString("test123")); int* pInt = new int[100]; }
Any advise?
Thanks a lot!
Genady.





