CoGetClassObject hangs

  • Thread starter Thread starter Stefan
  • Start date Start date
S

Stefan

Hello!

We have a strange problem with CoGetClassObject.

We have some older C++ applications using COM to communicate with each
other and
we have some newer ones, developed in C#.

When i call CoGetClassObject from a C++ application to retrieve the
classfactory for a C# class
everything works fine, but sometime in the future the same call will
hang (actually its the 127th, the 254th, ...
but i am not superstitious ;-)

I have tried every single CoInitialize / CoInitializeEx /
CoInitializeSecurity option i could find
and all objects are local, no remoting at all.

Can somebody help me? Or give me a hint what i can try out next?

Any comments highly appreciated!
 
Problem solved!

Of course it had nothing to do with the CoGetClassObject call at all,
but the module i
wanted to retrieve an interface pointer of was hanging, therefore the
CoGetClassObject
freezed and so the application i wrote was blocking.

Problem found between my ears ;-)
 
Back
Top