obvious memory errors not detected

obvious memory errors not detected

Hi, i use parallel studio 2011 inspector in memory checker mode. I write a small test

double *pointer=new double[20];

pointer=new double[20];

delete []pointer;

but my memory checker dose not see any leaks! i configure my compiler like here

http://software.intel.com/en-us/articles/compiler-settings-for-memory-er...

But its still not workong!

6 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Could you please share your project?If needed, I can convert this forum thread to a private in order to exchange confidential information and source codes.

-Vladimir

Sure, i can do itpublic - this project just an win32 console project with those 3 strings. But if you want to see a settings, can you say me how i can share this project in vs 2010? Just add all files?

Zip the project and attach to this thread ('Add Files' in the control pane of the editor)

-Vladimir

Funny, looks like it was my mistake. I write cin>>i; in the end of programm for waiting and always close it by clicking "close" so in this case of terminate inspector not working correct, but if i let programm close itself everything is fine!

Attachments: 

AttachmentSize
Downloadapplication/zip MemtestTEST.zip1.37 MB

Hi,This is the intended behaviour of the Inspector. An application should exit in a "normal way", i.e. without termination.Thanks.

-Vladimir

Leave a Comment

Please sign in to add a comment. Not a member? Join today