Revision [261]
This is an old revision of unableToReadImageError made by JohnMcIntosh on 2008-10-19 05:03:48.
unableToReadImageError
#define unableToReadImageError() error("Read failed or premature end of image file")Parms: NONE
return: NONE, fake return of zero
From: Interpreter
Why:
error feedback if the image cannot be read
Responsibility:
When we issue the sqImageFileRead we check the bytes read versus the request, if they are not equal then we fail with this error
MacIntosh
os-9/OSXCarbon
#define unableToReadImageError() plugInNotifyUser("Read failed or premature end of image file")
Cocoa:
TBD
iPhone
#define unableToReadImageError() plugInNotifyUser("Read failed or premature end of image file")
Unix
Windows
BUGS
Macintosh and iPHone using new mmap logic don't check to see if the file size is the same as the dataSize - (headerStart+headerSize) to
ensure the amount of bytes we think we are going to read is the same as contained in the file. Note dataSize comes from image header.