S60系统都会出现系统出错,其实我们解决的方法很简单:新建一个名为“ErrRd”的空文本文件,放到C:\system\bootdata这个目录下,让系统在出错时能显示出错代码。如果不能成功可以尝试在PKG文件中加入"ErrRd.txt" -"c:\Resource\ErrRd"语句。
当然这时我们就知道了这个错误代码的原因了:
Symbian错误码
以下是Generic Errors代码说明:
KErrNone 0
KErrNotFound -1 找不到指定的物件
KErrGeneral -2 一般(无指定)错误
KErr ncel -3 操作被取消
KErrNoMemory -4 不够内存
KErrNotSupported -5 不支持所要求的操作
KErrArgument -6 错误的要求
KErrTotalLossOfPrecision -7 精确的失去总和(直接翻译)
KErrBadHandle -8 错误的物件
KErrOverflow -9 超出限定的界限
KErrUnderflow -10 少于限定的界限
KErrAlreadyExists -11 已经有了
KErrPathNotFound -12 找不到指定的文件夹
KErrDied -13 关闭
KErrInUse -14 指定的物件正被其他程序使用中
KErrServerTerminated -15 伺服器关闭了
KErrServerBusy -16 伺服器正忙着
KErrCompletion -17 完成的过程中出现错误
KErrNotReady -18 还没准备好
KErrUnknown -19 不知名的错误
KErrCorrupt -20 坏了
KErrAccessDenied -21 拒绝接受
KErrLocked -22 锁了
KErrWrite -23 读写失败
KErrDisMounted -24 错误的disk
KErrEof -25 出乎预料的文件到了尾端
KErrDiskFull -26 Disk满了
KErrBadDriver -27 坏了的器材驱动
KErrBadName -28 不允许的名称
KErrCommsLineFail -29 Comms线失败
KErrCommsFrame -30 Comms框框错误
KErrCommsOverrun -31 Comms 超频错误
KErrCommsParity -32 Comms同位错误
KErrTimedOut -33 时间到了
KErrCouldNotConnect -34 连接失败
KErrCouldNotDisconnect -35 断连接失败
KErrDisconnected -36 断了
KErrBadLibraryEntryPoint -37 损坏的资料库接入点
KErrBadDescriptor -38 损坏的描述讯息块
KErrAbort -39 被打断了
KErrTooBig -40 太大了
KErrDivideByZero -41 除于零
KErrBadPower -42 电池快没电了
KErrDirFull -43 文件夹满了
KErrHardwareNotAvailable -44
KErrSessionClosed -45
KErrPermissionDenied -46
Error codes
From Forum Nokia Wiki
Global error codes from e32err.h. Note that each constant is defined as an integer like this:
const TInt KErrNone;
Also note that all of these codes indicate an error in the environment, or in user input from which a program may recover.
Error code |
Value |
Description |
KErrNone |
0 |
No error. |
KErrNotFound |
-1 |
Item not found. |
KErrGeneral |
-2 |
An error that has no specific categorisation. |
KErrCancel |
-3 |
Indicates an operation that has been cancelled. |
KErrNoMemory |
-4 |
An attempt to allocate memory has failed. |
KErrNotSupported |
-5 |
Some functionality is not supported in a given context. There may be many reasons for this; for example, a device may not support some specific behaviour. |
KErrTotalLossOfPrecision |
-6 |
An argument is out of range. |
KErrNotFound |
-7 |
A calculation has lost precision. This error arises when converting from an internal 96-bit real representation to a TReal32; the exponent of the internal representation is so small that the 32-bit real cannot contain it. |
KErrBadHandle |
-8 |
An invalid handle has been passed. A function involving a resource owned by a server or the kernel has specified an invalid handle. |
KErrOverflow |
-9 |
Indicates an overflow in some operation. In the context of mathematical or time/date functions, indicates a calculation that has produced arithmetic overflow exceeding the bounds allowed by the representation. In the context of data transfer, indicates that a buffer has over-filled without being emptied soon enough. |
KErrUnderflow |
-10 |
Indicates an underflow in some operation. In the context of mathematical or time/date functions, indicates a calculation that has produced a result smaller than the smallest magnitude of a finite number allowed by the representation. In the context of data transfer, indicates that a buffer was under-filled when data was required. |
KErrAlreadyExists |
-11 |
An object already exists. An object of some name/type is to be created, but an object of that name/type already exists. |
KErrPathNotFound |
-12 |
In the context of file operations, a path was not found. |
KErrDied |
-13 |
A handle refers to a thread that has died. |
KErrInUse |
-14 |
A requested resource is already in exclusive use. |
KErrServerTerminated |
-15 |
Client/server send/receive operation cannot run, because the server has terminated. |
KErrServerBusy |
-16 |
A client/server send/receive operation cannot run, because the server is busy handling another request. |
KErrCompletion |
-17 |
Indicates that an operation is complete, successfully or otherwise. This code may be used to indicate that some follow on operation can take place. It does not necessarily indicate an error condition. |
KErrNotReady |
-18 |
Indicates that a device required by an i/o operation is not ready to start operations. A common reason for returning this code is because a device has not been initialised, or has no power. |
KErrUnknown |
-19 |
A device is of unknown type. |
KErrCorrupt |
-20 |
Indicates that some media is not formatted properly, or links between sections of it have been corrupted. |
KErrAccessDenied |
-21 |
Access to a file is denied, because the permissions on the file do not allow the requested operation to be performed. |
KErrLocked |
-22 |
An operation cannot be performed, because the part of the file to be read or written is locked. |
KErrWrite |
-23 |
During a file write operation, not all the data could be written. |
KErrDisMounted |
-24 |
A volume which was to be used for a file system operation has been dismounted. |
KErrEof |
-25 |
Indicates that end of file has been reached. Note that RFile::Read() is a higher-level interface. When the end of the file is reached, it returns zero bytes in the destination descriptor, and a KErrNone return value. KErrEof is not used for this purpose; other error conditions are returned only if some other error condition was indicated on the file. |
KErrDiskFull |
-26 |
A write operation cannot complete, because the disk is full. |
KErrBadDriver |
-27 |
A driver DLL is of the wrong type. |
KErrBadName |
-28 |
A file name or other object name does not conform to the required syntax. |
KErrCommsLineFail |
-29 |
A communication line has failed. |
KErrCommsFrame |
-30 |
A frame error has occurred in a communications operation. |
KErrCommsOverrun |
-31 |
An overrun has been detected by a communications driver. |
KErrCommsParity |
-32 |
A parity error has occurred in communications. |
KErrTimedOut |
-33 |
An operation has timed out. |
KErrCouldNotConnect |
-34 |
A session could not connect. |
KErrCouldNotDisconnect |
-35 |
A session could not disconnect. |
KErrDisconnected |
-36 |
A function could not be executed because the required session was disconnected. |
KErrBadLibraryEntryPoint |
-37 |
A library entry point was not of the required type. |
KErrBadDescriptor |
-38 |
A non-descriptor parameter was passed by a client interface, when a server expected a descriptor. |
KErrAbort |
-39 |
An operation has been aborted. |
KErrTooBig |
-40 |
A number was too big. |
KErrDivideByZero |
-41 |
A divide-by-zero operation has been attempted. |
KErrBadPower |
-42 |
Insufficient power was available to complete an operation. |
KErrDirFull |
-43 |
An operation on a directory has failed. |
KErrHardwareNotAvailable |
-44 |
An operation cannot be performed because the necessary hardware is not available. |
KErrSessionClosed |
-45 |
The completion status when an outstanding client/server message is completed because a shared session has been closed. |
KErrPermissionDenied |
-46 |
An operation cannot be performed due to a potential security violation. |
KErrExtensionNotSupported |
-47 |
A requested extension function is not supported by the object concerned. |
KErrCommsBreak |
-48 |
A break has occurred in a communications operation. |