Re: Unknown error code of VFSFileOpen
Maybe the system doesn't know the error and give out memory error finally Or there is some memory allocation behind each FileRef... File functions are not published (most of the implementation must be on the driver level), so it cannot be checked. Jan Slodicka - Original Message - From: DongDong [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 4:55 AM Subject: Re: Unknown error code of VFSFileOpen After overnight checking the code line by line, the problem is due to wrong statement: VFSFileClose( volRefNum ); it should be VFSFileClose(fp); So bad that it doesn't give out any error during executing this command for the first eight times. Maybe the system doesn't know the error and give out memory error finally. Thanks all of you. Jan Slodicka [EMAIL PROTECTED] ??? news:[EMAIL PROTECTED] ???... Hello 259 (decadic) is memErrInvalidParam and occurs in the memory handling at several occasions, but they are mostly accompanied by an alert. Because this was not your case, it was probably during the call to one of these functions MemPtrResize MemHandleResize when you requested too big memory. Otherwise you can any time check MemoryMgr.c yourself. It is part of the Palm OS 4.0 limited sources. Since I discovered these sources, I found explanation of many questions that were hard to understand before. Regards, Jan Slodicka - Original Message - From: DongDong [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 5:27 PM Subject: Unknown error code of VFSFileOpen I have an application with a list of images read from VFS memory card. There are 12 images available on a screen. There are two buttons Go to top and Go to bottom to jump to first 12 images or last 12 images. It works properly at first. But after I click Go to bottom and Go to top alternatively continuously, An error occurs at eighth click on Go to top. I've checked the error code returned, just after calling VFSFileOpen, is 259. I tried to check what's the error but not any of the following. It happeneds at both my Zire71 and Simuator 5.2 at same location (i.e. the eighth click on Go to top). expErrCardReadOnly: expErrNotOpen: vfsErrBadName: vfsErrFileNotFound: vfsErrFilePermissionDenied: vfsModeExclusive: vfsErrVolumeBadRef: expErrUnsupportedOperation: expErrNotEnoughPower: expErrCardNotPresent: expErrInvalidSlotRefNum: expErrSlotDeallocated: expErrCardNoSectorReadWrite: expErrCardBadSector: expErrCardProtectedSector: expErrStillOpen: expErrUnimplemented: expErrEnumerationEmpty: expErrIncompatibleAPIVer: vfsErrBufferOverflow: vfsErrFileGeneric: vfsErrFileBadRef: vfsErrFileStillOpen: vfsErrFileAlreadyExists: vfsErrFileEOF: vfsErrVolumeStillMounted: vfsErrNoFileSystem: vfsErrBadData: vfsErrDirNotEmpty: vfsErrVolumeFull: vfsErrUnimplemented: vfsErrNotADirectory: vfsErrIsADirectory: vfsErrDirectoryNotFound: vfsErrNameShortened: Any advice and suggestion. Looking forwards to any help. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Unknown error code of VFSFileOpen
I have an application with a list of images read from VFS memory card. There are 12 images available on a screen. There are two buttons Go to top and Go to bottom to jump to first 12 images or last 12 images. It works properly at first. But after I click Go to bottom and Go to top alternatively continuously, An error occurs at eighth click on Go to top. I've checked the error code returned, just after calling VFSFileOpen, is 259. I tried to check what's the error but not any of the following. It happeneds at both my Zire71 and Simuator 5.2 at same location (i.e. the eighth click on Go to top). expErrCardReadOnly: expErrNotOpen: vfsErrBadName: vfsErrFileNotFound: vfsErrFilePermissionDenied: vfsModeExclusive: vfsErrVolumeBadRef: expErrUnsupportedOperation: expErrNotEnoughPower: expErrCardNotPresent: expErrInvalidSlotRefNum: expErrSlotDeallocated: expErrCardNoSectorReadWrite: expErrCardBadSector: expErrCardProtectedSector: expErrStillOpen: expErrUnimplemented: expErrEnumerationEmpty: expErrIncompatibleAPIVer: vfsErrBufferOverflow: vfsErrFileGeneric: vfsErrFileBadRef: vfsErrFileStillOpen: vfsErrFileAlreadyExists: vfsErrFileEOF: vfsErrVolumeStillMounted: vfsErrNoFileSystem: vfsErrBadData: vfsErrDirNotEmpty: vfsErrVolumeFull: vfsErrUnimplemented: vfsErrNotADirectory: vfsErrIsADirectory: vfsErrDirectoryNotFound: vfsErrNameShortened: Any advice and suggestion. Looking forwards to any help. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Unknown error code of VFSFileOpen
Sounds to me like you have a memory leak somewhere. Decimal error 259 is memErrInvalidParam (invalid param or requested size is too big). Brad DongDong wrote: I have an application with a list of images read from VFS memory card. There are 12 images available on a screen. There are two buttons Go to top and Go to bottom to jump to first 12 images or last 12 images. It works properly at first. But after I click Go to bottom and Go to top alternatively continuously, An error occurs at eighth click on Go to top. I've checked the error code returned, just after calling VFSFileOpen, is 259. I tried to check what's the error but not any of the following. It happeneds at both my Zire71 and Simuator 5.2 at same location (i.e. the eighth click on Go to top). expErrCardReadOnly: expErrNotOpen: vfsErrBadName: vfsErrFileNotFound: vfsErrFilePermissionDenied: vfsModeExclusive: vfsErrVolumeBadRef: expErrUnsupportedOperation: expErrNotEnoughPower: expErrCardNotPresent: expErrInvalidSlotRefNum: expErrSlotDeallocated: expErrCardNoSectorReadWrite: expErrCardBadSector: expErrCardProtectedSector: expErrStillOpen: expErrUnimplemented: expErrEnumerationEmpty: expErrIncompatibleAPIVer: vfsErrBufferOverflow: vfsErrFileGeneric: vfsErrFileBadRef: vfsErrFileStillOpen: vfsErrFileAlreadyExists: vfsErrFileEOF: vfsErrVolumeStillMounted: vfsErrNoFileSystem: vfsErrBadData: vfsErrDirNotEmpty: vfsErrVolumeFull: vfsErrUnimplemented: vfsErrNotADirectory: vfsErrIsADirectory: vfsErrDirectoryNotFound: vfsErrNameShortened: Any advice and suggestion. Looking forwards to any help. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Unknown error code of VFSFileOpen
Hello 259 (decadic) is memErrInvalidParam and occurs in the memory handling at several occasions, but they are mostly accompanied by an alert. Because this was not your case, it was probably during the call to one of these functions MemPtrResize MemHandleResize when you requested too big memory. Otherwise you can any time check MemoryMgr.c yourself. It is part of the Palm OS 4.0 limited sources. Since I discovered these sources, I found explanation of many questions that were hard to understand before. Regards, Jan Slodicka - Original Message - From: DongDong [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 5:27 PM Subject: Unknown error code of VFSFileOpen I have an application with a list of images read from VFS memory card. There are 12 images available on a screen. There are two buttons Go to top and Go to bottom to jump to first 12 images or last 12 images. It works properly at first. But after I click Go to bottom and Go to top alternatively continuously, An error occurs at eighth click on Go to top. I've checked the error code returned, just after calling VFSFileOpen, is 259. I tried to check what's the error but not any of the following. It happeneds at both my Zire71 and Simuator 5.2 at same location (i.e. the eighth click on Go to top). expErrCardReadOnly: expErrNotOpen: vfsErrBadName: vfsErrFileNotFound: vfsErrFilePermissionDenied: vfsModeExclusive: vfsErrVolumeBadRef: expErrUnsupportedOperation: expErrNotEnoughPower: expErrCardNotPresent: expErrInvalidSlotRefNum: expErrSlotDeallocated: expErrCardNoSectorReadWrite: expErrCardBadSector: expErrCardProtectedSector: expErrStillOpen: expErrUnimplemented: expErrEnumerationEmpty: expErrIncompatibleAPIVer: vfsErrBufferOverflow: vfsErrFileGeneric: vfsErrFileBadRef: vfsErrFileStillOpen: vfsErrFileAlreadyExists: vfsErrFileEOF: vfsErrVolumeStillMounted: vfsErrNoFileSystem: vfsErrBadData: vfsErrDirNotEmpty: vfsErrVolumeFull: vfsErrUnimplemented: vfsErrNotADirectory: vfsErrIsADirectory: vfsErrDirectoryNotFound: vfsErrNameShortened: Any advice and suggestion. Looking forwards to any help. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Unknown error code of VFSFileOpen
After overnight checking the code line by line, the problem is due to wrong statement: VFSFileClose( volRefNum ); it should be VFSFileClose(fp); So bad that it doesn't give out any error during executing this command for the first eight times. Maybe the system doesn't know the error and give out memory error finally. Thanks all of you. Jan Slodicka [EMAIL PROTECTED] ??? news:[EMAIL PROTECTED] ???... Hello 259 (decadic) is memErrInvalidParam and occurs in the memory handling at several occasions, but they are mostly accompanied by an alert. Because this was not your case, it was probably during the call to one of these functions MemPtrResize MemHandleResize when you requested too big memory. Otherwise you can any time check MemoryMgr.c yourself. It is part of the Palm OS 4.0 limited sources. Since I discovered these sources, I found explanation of many questions that were hard to understand before. Regards, Jan Slodicka - Original Message - From: DongDong [EMAIL PROTECTED] Newsgroups: palm-dev-forum To: Palm Developer Forum [EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 5:27 PM Subject: Unknown error code of VFSFileOpen I have an application with a list of images read from VFS memory card. There are 12 images available on a screen. There are two buttons Go to top and Go to bottom to jump to first 12 images or last 12 images. It works properly at first. But after I click Go to bottom and Go to top alternatively continuously, An error occurs at eighth click on Go to top. I've checked the error code returned, just after calling VFSFileOpen, is 259. I tried to check what's the error but not any of the following. It happeneds at both my Zire71 and Simuator 5.2 at same location (i.e. the eighth click on Go to top). expErrCardReadOnly: expErrNotOpen: vfsErrBadName: vfsErrFileNotFound: vfsErrFilePermissionDenied: vfsModeExclusive: vfsErrVolumeBadRef: expErrUnsupportedOperation: expErrNotEnoughPower: expErrCardNotPresent: expErrInvalidSlotRefNum: expErrSlotDeallocated: expErrCardNoSectorReadWrite: expErrCardBadSector: expErrCardProtectedSector: expErrStillOpen: expErrUnimplemented: expErrEnumerationEmpty: expErrIncompatibleAPIVer: vfsErrBufferOverflow: vfsErrFileGeneric: vfsErrFileBadRef: vfsErrFileStillOpen: vfsErrFileAlreadyExists: vfsErrFileEOF: vfsErrVolumeStillMounted: vfsErrNoFileSystem: vfsErrBadData: vfsErrDirNotEmpty: vfsErrVolumeFull: vfsErrUnimplemented: vfsErrNotADirectory: vfsErrIsADirectory: vfsErrDirectoryNotFound: vfsErrNameShortened: Any advice and suggestion. Looking forwards to any help. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/