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

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support