Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    File write errors on MacOSX?

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 321 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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,

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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.)

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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,

            1 Reply Last reply Reply Quote 0
            • First post
              Last post