IPDFXCsmartp instance
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 164
- Joined: Mon Feb 08, 2010 8:48 am
IPDFXCsmartp instance
Hi, is it safe to use IPDFXCsmartp instance after the parent IPDFXCview instance was released (its Release method was called)?
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: IPDFXCsmartp instance
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.
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.