CDesC8Array panic
| Fri, 2005-04-29 03:45 | |
|
Hi all,
I have implemented a Description Array. But everytime when I try to append a description to the new array, it will result a KERN-EXEC: 3 error. I have no idea about how to solve this. Could anyone help? Thanks! Following is my code: CDesC8Array* iParamArray; iParamArray->AppendL(_L8("test\r\n")); Thanks, Vincent |
|






Forum posts: 188
BR
Chetan
----
Chetan Kulshrestha
Forum posts: 32
Could you tell me how can I allocate memory to it?
Thanks,
Vincent
Forum posts: 10
It is very simple you can allocate the memeory like this.
CDesC8Array* iParamArray = new (ELeave) CDesC8Array().
Regards
Chetana patil
Forum posts: 188
CDesC8ArrayFlat* iParamArray = new (ELeave) CDesC8ArrayFlat(size_of_Array ).
BR
Chetan
----
Chetan Kulshrestha
Forum posts: 32
It returns an error:
error C2512: 'CDesC8Array' : no appropriate default constructor available
How can I solve this?
Thanks,
Vincent
Forum posts: 18
The class CDesC8Array is an abstract class and you cannot instantiate the class.
You can use CDesC8ArrayFlat which is actually derived from CDesC8Array.
Forum posts: 32
I get it works now using CDesC8ArrayFlat.
Really Thanks!