Click here to Skip to main content
15,846,144 members
Home / Discussions / COM
   

COM

 
GeneralRe: How to develop 64 bit application using VS2005 Pin
am 200918-Jul-10 20:24
am 200918-Jul-10 20:24 
QuestionVS2010 vs VS2008 generated IDL differences that generates midl compilation error. Pin
Maximilien14-Jul-10 10:45
Maximilien14-Jul-10 10:45 
AnswerRe: VS2010 vs VS2008 generated IDL differences that generates midl compilation error. Pin
Richard MacCutchan14-Jul-10 23:12
mveRichard MacCutchan14-Jul-10 23:12 
QuestionHow to use COleDataObject Pin
MKC00213-Jul-10 5:14
MKC00213-Jul-10 5:14 
QuestionDll Error Pin
Enobong Adahada13-Jul-10 5:09
Enobong Adahada13-Jul-10 5:09 
AnswerRe: Dll Error Pin
Sauro Viti16-Jul-10 1:43
professionalSauro Viti16-Jul-10 1:43 
QuestionContext Menu Shell Extension (Invoked time) [modified] Pin
A_Fa12-Jul-10 20:32
A_Fa12-Jul-10 20:32 
QuestionCoInittialize Fails with large number of processes [modified] Pin
tony_Udz7-Jul-10 19:47
tony_Udz7-Jul-10 19:47 
Hello,

I am facing problem while calling CoInitialize().

Here is the sample code:

ABC.exe
=======

for (int i = 0; i < 150; i++)
{
if (!SUCCEEDED(::CoInitialize(NULL)))
{
MessageBox(NULL, "CoInitialize Failed", "Failed", 0);
}

COleMessageFilter* pTempObj = new COleMessageFilter;
BOOL bResult = pTempObj->Register();
::CoUninitialize();
}

XYZ.exe
=======

In XYZ.exe i am invoking ABC.exe for more then 750 times.
After invoking around 500 exes, there is an error for CoInitialize .
If i put a sleep of 1 second in for loop, then there is no error.

I have simulated my problem using the above sample code.

In fact, I am getting error as 0x80070583 and system error as 1411 (Class does not exist).

Thanks in Advance!

Regards,
Tony

modified on Monday, July 12, 2010 12:07 AM

QuestionException during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr11227-Jul-10 3:20
asr11227-Jul-10 3:20 
AnswerRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
Richard MacCutchan7-Jul-10 4:06
mveRichard MacCutchan7-Jul-10 4:06 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr11227-Jul-10 20:44
asr11227-Jul-10 20:44 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
Richard MacCutchan7-Jul-10 22:19
mveRichard MacCutchan7-Jul-10 22:19 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr11227-Jul-10 23:32
asr11227-Jul-10 23:32 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr11228-Jul-10 4:05
asr11228-Jul-10 4:05 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
Richard MacCutchan9-Jul-10 22:19
mveRichard MacCutchan9-Jul-10 22:19 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
Vi212-Jul-10 1:05
Vi212-Jul-10 1:05 
GeneralRe: Exception during assignment operation to a COM object - "Attempted to read or write protected memory" Pin
asr112214-Jul-10 3:39
asr112214-Jul-10 3:39 
QuestionDifference between COM Component and Class Pin
krishna_CP5-Jul-10 1:38
krishna_CP5-Jul-10 1:38 
AnswerRe: Difference between COM Component and Class Pin
Richard MacCutchan5-Jul-10 3:25
mveRichard MacCutchan5-Jul-10 3:25 
GeneralRe: Difference between COM Component and Class Pin
krishna_CP5-Jul-10 3:42
krishna_CP5-Jul-10 3:42 
GeneralRe: Difference between COM Component and Class Pin
Richard MacCutchan5-Jul-10 7:32
mveRichard MacCutchan5-Jul-10 7:32 
QuestionHow to read all Windows Registry subkeys of a given key? Pin
Kunal Chowdhury «IN»2-Jul-10 7:05
professionalKunal Chowdhury «IN»2-Jul-10 7:05 
AnswerRe: How to read all Windows Registry subkeys of a given key? Pin
«_Superman_»4-Jul-10 6:06
professional«_Superman_»4-Jul-10 6:06 
GeneralRe: How to read all Windows Registry subkeys of a given key? Pin
Kunal Chowdhury «IN»4-Jul-10 6:10
professionalKunal Chowdhury «IN»4-Jul-10 6:10 
QuestionOLE object containing data + multiple views of data in a compound document. Pin
Code-o-mat2-Jul-10 6:16
Code-o-mat2-Jul-10 6:16 

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.