ISecurity * piSecurity;piPS->get_Security( &piSecurity );
copied from comptr let the reference count plus one but without release .Should be :
CComPtr< ISecurity > piSecurity;
piPS->get_Security( &piSecurity );
ISecurity * piSecurity;piPS->get_Security( &piSecurity );
copied from comptr let the reference count plus one but without release .Should be :
CComPtr< ISecurity > piSecurity;
piPS->get_Security( &piSecurity );