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.
or in QMainWindow based class:
int main(int argc, char *argv)
QApplication a(argc, argv);
QLabel* pLabel = new QLabel;
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>");
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 see
QLineEdit* pNewEdit = new QLineEdit("blabla");
pNewEdit = new QLineEdit("blabla");
HBufC* pBuf = HBufC::NewL(100);
HBufC* pBuf1 = HBufC::New(1000);
char* pch = new char;
// class member creation
ipNewLineEdit = new QLineEdit("nadadadad");
int* pInt = new int;
Thanks a lot!