Old 31st October 2003, 13:23   #1
dRaakje
Junior Member
 
Join Date: Oct 2003
Location: Netherlands
Posts: 23
Send a message via ICQ to dRaakje
Just relalized something. I think the problem is with bstr ownership.
When I do this:
vtBandGUID1.bstrVal = _bstr_t(szBarCLSID);

the _bstr_t class knows its being assigned to another BSTR and so relinguishes control over the BSTR (Or allocates a new BSTR)

When I do:
vtBandGUID2.bstrVal = bBarCLSID;

Nothing special is done and the call of ShowBandObject doesn't have access to the bstr that is being passed on.
VariantClear() afterwards isn't even necessary...

Or am I completely off track here... I have to admit, I've been bluffing my way through COM without really understanding it :P

Remco
dRaakje is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump