I am intercepting the open dialogs return value for inserting documents where it tries to set
ASPathName** outASPathNames
and setting it myself like so
char *filePath = "/C/test.jpg";
ASPathName asPathName = ASFileSysCreatePathFromDIPath(fileSys, filePath, NULL)
ASFile asFile;
ASFileSysOpenFile(fileSys, asPathName, ASFILE_READ, (ASFile *)&asFile);
*outASPathNames = &asPathName;
It appears to be a correct ASPathName as I can use it to open documents fine using the below code, yet as a return value for the dialog it does not work.
AVDoc doc = AVDocOpenFromASFileWithParams(asFile, 0, 0);
When the dialog method returns I see the following error message on my screen
I have no idea where to go from here, can anyone shed any light on this?