Click here to Skip to main content
15,891,136 members

Comments by unitrunker (Top 1 by date)

unitrunker 25-Oct-12 11:55am View    
Why are you deleting a _bstr_t? The destructor for _bstr_t should call SysFreeString on the underlying BSTR. If you only want to release the Data portion you can do this:

SysFreeString(pMess->Data.Detach());