Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Memory Errors tab not populating with any output data: (2 Items)
   
Memory Errors tab not populating with any output data  
I am a QNX novice so I am trying to learn to use the various Memory diagnostic tools.
I am trying to learn to use the Memory Errors tool first.
I followed the Help ... Welcome .. 10 Steps to developing a QNX program. Quick Start Guide. So I created a new QNX C++ 
project (NOTE I selected C++ instead of C) which generates a default C++ program.
I connected to Neutrino running in the VMWare sample VM and it connects properly and I can display the System Info.
I created a C/C++ QNX Qconn(IP)s Launch Configuration
In the C++ main I added some code to create a memory leak.
My code to create a memory leak in the my_first_project.cc is:

    char* str = new char[5];
    str[0] = 65;

Then I followed the steps to activate the Memory Errors Checker.
On the Debug Perspective I selected Debug Configurations ... selected my_configuration .. selected the Tools tab and 
selected the Memory Errors item.
When I run the application under Debug, the memory errors output tabs never populates with any data.

What could be the problem? 
Re: Memory Errors tab not populating with any output data  
Example you gave is not a leak per se, it depends what you do with str pointer
    char* str = new char[5];
    str=null;

That would be a leak