Set an error number on the Symbian Simulator

Source: Internet
Author: User

During the process of debugging the Symbian application, sometimes the program has been compiled successfully, but an exception occurs when the program is running and exits. At this time, we can generate an error code query error on the simulator.

The method is simple: add the errrd file in the C:/Symbian/8.0a/s60_2nd_fp2_ SC/epoc32/wins/C/system/bootdata directory.

Common error codes:

Kern-exec 0
This error usually occurs when a process or thread uses the destroyed service object handle. For example, the close () method of an object is called to continue using the object handle.

Kern-exec 3
This error occurs in many cases. The most common case is that you use a null pointer. For example, if an object is not created, use its member variables or methods.
User 11
Memory out-of-bounds is usually caused by insufficient buffer space allocated to your data.
User 130
Array out of bounds. This error occurs if the subscript of the rarray or rpointerarray array exceeds the length of the array.
User 29
Most of the errors are caused by an out-of-bounds operation on the index of the sub-string of the descriptor.
User 42
This error is usually caused by invalid memory access, for example, a pointer to invalid memory. I usually encounter this error when debugging DLL, mainly because freeze is not executed because of DLL modification. The main program dependent on the DLL has not been rewritten and compiled. Function access address Error
E32USER-CBase 71
This error is usually caused by the mismatch between cleanupstack: pushl () and cleanupstack: Pop (). For example, if you call cleanstack: pushl (), you forget to call cleanstack :: pop ()
E32USER-CBase 63
This error corresponds to E32USER-CBase 71 and is also caused by the mismatch of cleanupstack: pushl () and cleanupstack: Pop (), you may be calling cleanstack: Pop () too much ()
Avkon 59
Baseconstructl () is not called when constructing a view in s60 2nd; no exception occurs. If baseconstructl () is not called when porting to s60 3rd, the system will prompt this error.
Error code-46
An error of-46 is usually returned when an unauthorized or unavailable service is called in the third edition.
The error code cone-8 is usually caused by the absence of release of window resources. Confirm that the control for creating the window is cleared after the program is released.
Cone 44
This error may occur because when you destroy the control, you forgot to call removefromstack () to remove the control in response to the event.
In ceikrichtexteditor, The etext 12 error occurs when richtext () → reset () is used to clear the text and perform operations such as text insertion.

Problem Analysis:

Etext 12
The description in the panic document is echarposbeyonddocument, so it is caused by the cross-border cursor position when inserting text. After richtext () → reset () is executed, the text is cleared, but the cursor remains at the original position, and the system does not automatically return to the zero position.

Solution:

You must call the following two statements to manually set the cursor position to 0.

Irichtexteditor-> handletextchangedl ();
Irichtexteditor-> setcursorposl (0, efalse

Cone 14
Environment cannot find the specified resource in any resource file. The resource file has an error. The resource file cannot be read correctly.

In normal software development, there are actually a few common errors. Here I will list my common errors:

User 10
The subscript of the descriptor exceeds its actual length. For example, hbuf <10> text; text. mid (11 );

User 11
During append or copy, the length of the destination descriptor is not long enough.

User 42
Delete an object that does not exist. This is usually the case: if you have two pointers pointing to the same object at the same time, when you delete these two pointers at the same time, there will be problems. Another common scenario is to use an array (such as rpointarray) that transfers ownership, such as my new

An object named temp is appended to rpointarray. After that, I delete temp again. At last, the error user42 will occur when rpointarray is released. Because the ownership of the object to which temp points has been switched to an array.

User 130
When an array is used, the maximum number of tables allowed by the array is exceeded.

Kexe 3
It is very common to know the situation of controlling needles. In fact, if your program needs to load some libraries, if these libraries do not exist, there will also be a null pointer error.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.