Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - CoGetClassObject hangs

Reply
 
Old 06-26-2009   #1 (permalink)
Stefan


 
 

CoGetClassObject hangs

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!

My System SpecsSystem Spec
Old 06-29-2009   #2 (permalink)
Stefan


 
 

Re: CoGetClassObject hangs

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 ;-)

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
App hangs General Discussion
PC just hangs! Vista General
every app hangs General Discussion
PC Hangs Vista General
IE 7 hangs using 100% CPU Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46