Click here to Skip to main content
15,905,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Using OLE IStream in a thread Pin
Stephen Hewitt22-Apr-06 0:32
Stephen Hewitt22-Apr-06 0:32 
GeneralRe: Using OLE IStream in a thread Pin
Waldermort22-Apr-06 0:46
Waldermort22-Apr-06 0:46 
GeneralRe: Using OLE IStream in a thread Pin
Stephen Hewitt22-Apr-06 1:08
Stephen Hewitt22-Apr-06 1:08 
GeneralRe: Using OLE IStream in a thread Pin
Waldermort22-Apr-06 1:58
Waldermort22-Apr-06 1:58 
GeneralRe: Using OLE IStream in a thread Pin
Stephen Hewitt22-Apr-06 2:01
Stephen Hewitt22-Apr-06 2:01 
GeneralRe: Using OLE IStream in a thread Pin
Waldermort22-Apr-06 2:14
Waldermort22-Apr-06 2:14 
GeneralRe: Using OLE IStream in a thread Pin
Waldermort22-Apr-06 2:41
Waldermort22-Apr-06 2:41 
GeneralRe: Using OLE IStream in a thread Pin
Waldermort22-Apr-06 3:36
Waldermort22-Apr-06 3:36 
Well I thought I had this working, but it seems that the CoGetInterfaceAndReleaseStream function is entering into an endless loop and not returning. This is of course causing any following code not to be executed, and later my WaitForMultipleObjects does just that and waits.
_stream = NULL;
HRESULT hr = CoGetInterfaceAndReleaseStream(_marshal,
IID_IStream, (void **)&_stream);
if ( FAILED(hr) )
{
    return;
}
Is it possibly related to the initial flags when opening the stream? I have tried changing them but it only leads to the stream failing to open.
GeneralRe: Using OLE IStream in a thread Pin
Stephen Hewitt22-Apr-06 3:51
Stephen Hewitt22-Apr-06 3:51 
GeneralRe: Using OLE IStream in a thread Pin
Waldermort22-Apr-06 4:08
Waldermort22-Apr-06 4:08 
GeneralRe: Using OLE IStream in a thread Pin
Stephen Hewitt22-Apr-06 4:26
Stephen Hewitt22-Apr-06 4:26 
GeneralRe: Using OLE IStream in a thread Pin
Waldermort22-Apr-06 4:42
Waldermort22-Apr-06 4:42 
GeneralRe: Using OLE IStream in a thread Pin
Waldermort22-Apr-06 6:23
Waldermort22-Apr-06 6:23 
GeneralRe: Using OLE IStream in a thread Pin
Stephen Hewitt22-Apr-06 1:19
Stephen Hewitt22-Apr-06 1:19 
QuestionWhy can't debug in multy top document program(vs2003)? Pin
zhoucheng21-Apr-06 23:13
zhoucheng21-Apr-06 23:13 
QuestionSuggestions for Code Obfuscator and/or Encrypter Pin
JSadleir21-Apr-06 22:18
JSadleir21-Apr-06 22:18 
AnswerRe: Suggestions for Code Obfuscator and/or Encrypter Pin
Nick_Kisialiou22-Apr-06 0:53
Nick_Kisialiou22-Apr-06 0:53 
AnswerRe: Suggestions for Code Obfuscator and/or Encrypter Pin
Roland Pibinger22-Apr-06 1:04
Roland Pibinger22-Apr-06 1:04 
GeneralRe: Suggestions for Code Obfuscator and/or Encrypter Pin
JSadleir22-Apr-06 14:09
JSadleir22-Apr-06 14:09 
AnswerRe: Suggestions for Code Obfuscator and/or Encrypter Pin
John R. Shaw22-Apr-06 19:14
John R. Shaw22-Apr-06 19:14 
GeneralRe: Suggestions for Code Obfuscator and/or Encrypter Pin
JSadleir22-Apr-06 21:23
JSadleir22-Apr-06 21:23 
GeneralRe: Suggestions for Code Obfuscator and/or Encrypter Pin
John R. Shaw22-Apr-06 22:02
John R. Shaw22-Apr-06 22:02 
GeneralRe: Suggestions for Code Obfuscator and/or Encrypter Pin
JSadleir25-Apr-06 16:50
JSadleir25-Apr-06 16:50 
GeneralRe: Suggestions for Code Obfuscator and/or Encrypter Pin
Blake Miller26-Apr-06 7:57
Blake Miller26-Apr-06 7:57 
GeneralRe: Suggestions for Code Obfuscator and/or Encrypter Pin
Nick_Kisialiou22-Apr-06 22:15
Nick_Kisialiou22-Apr-06 22:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.