hello, I work on a library, every thing allocated in the library is reported as memory leak even though there isn't a memory leak at all
library is dynamically linked to the executable
{7165} normal block at 0x00DE7840, 24 bytes long.
Data: < s > E0 12 D5 00 88 73 DE 00 E0 12 D5 00 15 00 00 00
{7164} normal block at 0x00DE77E8, 24 bytes long.
Data: <xt w xt > 78 74 DE 00 90 77 DE 00 78 74 DE 00 06 10 CD CD
when I intentionally did a memory leak it reported as
I believe that, the memory allocated by library comes from another heap than the executable, or something like this happens so I get wrong reports. I probably miss use debug functions or I have a dynamic linking problem but I cant manage to figure it out yet
for example, in the executable project I create a Line object which is defined in the library. compiler gives memory leak reports even though neither Line object is created as a pointer nor line object it self allocate memory by new
1 2 3 4 5
#include "mylib" // .libs are included without any linking problems or warnings
void main() {
Line l; // this line cause memory leak
}