Application-Closed-User-129(转)

本文讨论了在Symbian平台上使用RArray时遇到的长度限制错误(-129),并提出了几种解决策略,包括使用RPointerArray、CArrayFixFlat和CArrayPtrFlat来存储数据库项,以避免大小限制问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Originally Posted by HAHAPrince

Hi Everybody,
What is the wrong with this error???

The SDK is pretty straight forward in telling about the error, did you check it :-

129
This panic is raised when constructing an array of fixed length objects, an RArray, and the length of the array elements is one of the following:
zero
negative
greater than 640.

So check the usage of your arrays and see what you are doing wrong

Also HAHAPrince you have been around for awhile already, thus, you propably have been told that you should debug your application, and try finding out which line is giving you the error, and when you find it, you could post the code around the line to show a bit on what you are doing.
anyway, do not post the whole project, just the parts that are before the line that is giving you the problem..

Hi guys,
I have implemented the Database Example and using RArray to read database items. I am also getting User129. As we know this is because of the size restriction of Template class. So, what can be the other option to read whole database without any size restrictions?

 

You could maybe make CBase derived items, that stores string values in HBufC, and use RPointerArray to store the items.

Hi Sumit,
You may use RPointerArray or CArrayFixFlat<TAny> or CArrayPtrFlat to store your database items.
Thanks,
Eswar

 

Thanks eswar and yucca. I will try it and get back to you. Do you guys have any example or link to refer the use of RPointerArray.

Hi Sumit,
Search in Forum Nokia Wiki examples or SDK examples for using RPointerArray.
Thanks,
Eswar

转载于:https://www.cnblogs.com/yaoliang11/archive/2011/01/14/1935443.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值