path_createsysfile bug?


    Apr 29 2013 | 9:26 am
    We are using path_createsysfile in an external and the function does not work reliably. It typically fails to create a file (and returns an error code) but would work when done several times. Tested on Mac 6.0 and later 6.1.2, running on Mountain Lion 10.8.3.
    Any idea what is wrong?

    • Apr 29 2013 | 9:41 am
      Hi there. Unsurprisingly, we will need more information than this. For instance: OS, which error code, what kind of file and where, some sample code if possible. We use path_createsysfile() extensively internally and in the built-in externals, so there's probably some local circumstance which is creating the problems you are seeing.
      Thanks, Jeremy
    • Apr 29 2013 | 10:55 am
      Problem solved : seems like 'path' parameter has to be initialized to 0 before calling in path_createsysfile(filename, path, type, &fh);