Hi
How to copy buffer data in TPtr8?
my code:
TBuf16<100> response;
response.Copy(_L("eeeee"));
TPtr8 ptrBuffer2Decode(NULL , 0 , 0);
ptrBuffer2Decode.Copy((TUint*)response.Ptr(), response.Size());
Regards,
SymbianTH
Hi
How to copy buffer data in TPtr8?
my code:
TBuf16<100> response;
response.Copy(_L("eeeee"));
TPtr8 ptrBuffer2Decode(NULL , 0 , 0);
ptrBuffer2Decode.Copy((TUint*)response.Ptr(), response.Size());
Regards,
SymbianTH
Hi
Copy data succefully if write following code
TBufC8<KResponseLength> buf;
buf.Des().Copy(_L("sfsdfsdf"));
TPtr8 ptr(buf.Des());
But problem is
.H
---
TPtr8 iPtrBuffer2Decode; is Global variable
.cpp
----
iPtrBuffer2Decode.Copy(buf.Des()); Application closed Please help me. how i copy data in global varible?
SymbianTH
Check the panic code, http://wiki.forum.nokia.com/index.ph...ded_panic_code as usual.
It is probably an overflow. Anyway, according to these two posts, you have absolutely no idea about descriptors. Check http://descriptors.blogspot.com