File write errors on MacOSX?
- 
 THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED On 28/09/2006 at 14:12, xxxxxxxx wrote: User Information: 
 Cinema 4D Version: 9.102
 Platform: Mac OSX ;
 Language(s) : C++ ;--------- 
 This problem has come up occasionally with MacOS users of my plugin - they enable logging and the log file cannot be written to or they go to convert a BUM map to a JPG image and it cannot be written. Seems that if the file exists, there may be a problem writing it.Now in the case of the JPG image write, I use the standard: bdata.SetLong(JPGSAVER_QUALITY, 100); if (normalMap->Save(bumFile, FILTER_JPG, &bdata;, 0) != IMAGE_OK) ...The only time this fails is on MacOS and if the file referenced by Filename 'bumFile' already exists. This could be a MacOS permissions problem, but I'd like some official reason for these problems and a way to resolve them, please. Thank you very much, 
- 
 THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED On 28/09/2006 at 22:37, xxxxxxxx wrote: Further information: the error is coming up as IMAGE_DISKERROR - hmmm. 
- 
 THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED On 04/10/2006 at 11:39, xxxxxxxx wrote: It seems the BaseBitmap::Save() function doesn't allow to overwrite files on some platforms. I guess you could use GeFExist() to detect this situation? Would you be allowed to delete the file with GeFKill()? (Of course, some scheme using a temporary and GeFCopyFile(overwrite=TRUE) would probably be safer.) 
- 
 THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED On 04/10/2006 at 14:00, xxxxxxxx wrote: Okay. Will have to ask the user first before deleting or overwriting just in case. Thank you very much and congrats on making my life miserable (R10)!  Take care,