I am just learning how to use drmemory and am getting error below
I am guessing that is undefined in C++ and can lead to run-time issues is this correct?Code:INVALID HEAP ARGUMENT: allocated with malloc, freed with operator delete
Tim S.
I am just learning how to use drmemory and am getting error below
I am guessing that is undefined in C++ and can lead to run-time issues is this correct?Code:INVALID HEAP ARGUMENT: allocated with malloc, freed with operator delete
Tim S.
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
Yes, mix and match with malloc / new / new[] doesn't work.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson