IPDFXCsmartp instance

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

anovy
User
Posts: 164
Joined: Mon Feb 08, 2010 8:48 am

IPDFXCsmartp instance

Post by anovy »

Hi, is it safe to use IPDFXCsmartp instance after the parent IPDFXCview instance was released (its Release method was called)?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: IPDFXCsmartp instance

Post by Vasyl - PDF-XChange »

If the owner object (IPDFXCview) is still a window after calling Release() then you may continue to use this smart pointer.
Smart pointers contain one reference to the owner.

If the owner object has lost a window then calling of any methods of the smart pointer object will return an error(E_UNEXPECTED).

HTH.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.