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:
See iPHone
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.