I have a .NET object living inside a COM+ app for object pooling and
impersonation.  The pool has 6 minimum and 6 maximum objects in it,and the
timeout is 3 seconds.  I created a multithreaded console app to throw 8
randomly-timed requests at the server object.  If the pool is all used, and
the server object blocks, I get the error

"
System.Runtime.InteropServices.COMException (0x8004E024): COM+ activation
failed because the activation could ot be completed in the specified amount
of time.
"

What is a good way for callers to wait-and-retry?  It seems like
conventional try/catch logic won't cut it in this case.  Can anyone
recommend something recursive?

Thanks.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to