Hi All,

I have a Multithreaded Application in which i am trying to open a Compounded 
Stream using OpenStream method of IStream interface in a following manner:

CComPtr<IStream> ptrDataStream;hr = 
ptrStorage->OpenStream(strDataStreamName,0,STGM_READ | 
STGM_SHARE_EXCLUSIVE,0,&ptrDataStream);
if (hr)
  return hr;

The problem which I am facing is that at some time not always OpenStream return 
Access Denied error. After getting this error I added a lock in this function 
which is released at the end of the function, but this change doesn't effect 
the error  .
Please help me in this regard.

Thanks in Advance
Ankush Gupta



      Download prohibited? No problem. CHAT from any browser, without download. 
Go to http://in.webmessenger.yahoo.com/

[Non-text portions of this message have been removed]

Reply via email to