This question comes up every now and then, so it's worth repeating. "A function returns an error code of 259. What does this mean?"
First, you should convert the decimal number to hexadecimal (259 = 0x103). The first octet is the manager, the second is the error within the manager. If you look in ErrorBase.h you will see that 0x100 corresponds to memErrorClass. If you look in MemoryMgr.h you will see that 0x03 is memErrInvalidParam. Be careful with an error like - for example - 4626 ( 4626 = 0x1212). In Errorbase.h you can see this is a Netlib error (netErrorClass). Looking in NetMgr.h you will see the following: .... #define netErrNoInterfaces (netErrorClass | 12) //ENETUNREACH #define netErrBufTooSmall (netErrorClass | 13) #define netErrUnimplemented (netErrorClass | 14) #define netErrPortInUse (netErrorClass | 15) //EADDRINUSE #define netErrQuietTimeNotElapsed (netErrorClass | 16) //EADDRINUSE #define netErrInternal (netErrorClass | 17) #define netErrTimeout (netErrorClass | 18) //ETIMEDOUT ..... The correct error is "netErrTimeout" and not "netErrNoInterfaces" because 0x12 = 18!! Hope this helps, Peter Easton Palm Developer Support David Cooper wrote: > Where can I find a list of all the error codes? How can I program the palm > so that I can get a text description of the error codes instead of just the > number 259 or 20 etc? > > Thanks for your help. > David -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
