Acrobat Plugin Unloading
when closing adobe acrobat after using plugin throws error.
i release objects ( think ) when following method called
accb1 asbool accb2 pluginunload ()
but still error.
the part seems problem following lines of code
std::string str ("c:\\test.jpg");
aspathname = asfilesyscreatepathname(null, asatomfromstring("cstring"), str.c_str(), 0);
if(asfilesysopenfile64(0, aspathname, asfile_read, (asfile *)&asfile) != 0)
{
avalertnote("could not read file...");
bret = false;
return bret;
}
*outnumaspathnames = 1;
*outaspathnames = (aspathname*)&aspathname;
*iochosenfilterindex = -1;
*outfilesys = asgetdefaultfilesys();
this returning , inserting document (test.jpg) current pdf.
later on in cleanup code release can tell.
asfilesysreleasepath(0,aspathname);
asfile = null;
from adobe sdk api says need release aspathname, missing here?
cheers
ben
More discussions in Acrobat SDK
adobe
Comments
Post a Comment