Hi,
I executed below code and it worked fine for me without any crash or errors on Windows - 64 bit platform:
SXMPMeta meta;
SXMPFiles xmpFile;
//Open for Update
XMP_OptionBits openFlags= kXMPFiles_OpenForUpdate | kXMPFiles_OpenUseSmartHandler;
xmpFile.OpenFile( targetPath, kXMP_UnknownFile, openFlags);
xmpFile.GetXMP(&meta);
meta.SetProperty(kXMP_NS_XMP, "FCAAutomaticFileIdentification","{644e1dd7-2a7f-18fb-b8ed-ed78c3f92c2b}", NULL);
if (!xmpFile.CanPutXMP(meta))
{
xmpFile.CloseFile();
}
xmpFile.PutXMP(meta);
xmpFile.CloseFile();
Can you please share your pdf file which you are using with me if possible so that I can debug if any problem arises.
Thanks