Wednesday, January 13, 2016

Consult on memory recall




            


My code is as follows:
TMemoryInfoV1Buf info1;
UserHal :: MemoryInfo (info1);
TInt freeMemoryinfo1 = info1 () iFreeRamInBytes;.
HBufC8 * buf = HBufC8 :: NewL (25600);
delete buf;
buf = NULL;
TMemoryInfoV1Buf info2;
UserHal :: MemoryInfo (info2);
. TInt freeMemoryinfo2 = info2 () iFreeRamInBytes;
But with size around freeMemoryinfo1 freeMemoryinfo2 different, smaller 25600, but the program is no memory leak, what is the reason, the feeling seems to just release the memory, but there is no recovery for the stack, is there no experts can give pointers? Thank you
Reply:
Wrong, it is the heap, not the stack
Reply:
There are no experts can give pointers about ah
Reply:
I think, should not immediately recovered it ,,,
Reply:
Learn ing
Incidentally, the top of the

No comments:

Post a Comment