TPtr8 issue ....
| Thu, 2007-10-11 08:15 | |
|
Descriptor Issue.. TUint8* aDst;After this also when the application crashes it shows memory leak. |
|
| Thu, 2007-10-11 08:15 | |
|
Descriptor Issue.. TUint8* aDst;After this also when the application crashes it shows memory leak. |
|
Forum posts: 672
At least you should use User::Free with User::Alloc, not delete.
Forum posts: 28
Thanks for the advice.
I have used that also
Its just that i have not copied that code.
Rather it should be
//For allocationTUint8* buffer = (TUint8*)User::Alloc(160*sizeof(TInt16));
//For removal or for freeing allocated memory.
User::Free(buffer);
Forum posts: 1233
There is nothing wrong in the code you have posted (as long as you really use "User::Free" and not "delete" )
Your problem must be in some of the code that you have not posted.
Forum posts: 28
Thanks a lot.

Yes i rectified the problem.
It was in other piece of code....