Is ISessionObject::putref_Value() "safe"?

Is ISessionObject::putref_Value() "safe"?

Post by Tim Schwei » Fri, 18 Jul 2003 02:42:23

Hi folks,

Our IIS-based web application is a mixture of C++ DLLs and ASP pages with
VBScript and JavaScript.

We have our own COM object (an LDAP wrapper) with both C++ and VB
interfaces. We are using this COM object "independently" in both
environments; in other words our C++ code creates it's own instance to
use, and our ASP pages use Server.CreateObject() to create an instance
for it's own use.

This works just fine, although it is a bit wasteful since the C++ code
and the ASP code would sometimes both independently "log in" to the
COM object using the same credentials.

However, we just realized that we can put a reference to the COM
object in the Session object and refer to the same instance in both
places using ISessionObject:putref_Value(). This is very cool, and
seems to work as expected. But I am a bit uneasy using this
shared-instance technique -- it doesn't feel as "safe" as our previous

Is this a safe way to use most COM objects?

Are there any potential deadlock/memory/runtime problems I need to be
aware of using this new shared-instance technique?

Finally, can somebody explain a little bit about how the same instance
of a COM object can be used simultaneously in 2 different runtime

Thanks in advance,
Tim Schweitzer
Nortel Networks

1. Problem using ISessionObject::putref_Value to store COM object

2. I am So Confused About Safe Sender List and Safe Recipient List


I am setting up Outlook in Microsoft Office 2003 and I want to add domains
to the Safe Senders list and the Safe Recipients list.

I am so confused. Are the people on my Safe Sender list people I send email
to or is the list for people who send email to me.

I know this seems silly but I became confused as I was trying to set up this

Thank you in advance for your kind help and comments,

Miss Leigh

3. AM/AM, AM/AM Modeling

4. How safe am I?

5. Am I Safe?

6. Selling computer am I safe

7. XP Firewall.Am i really safe?

8. Why am I advised to open Outlook in Safe mode?

9. Mailwasher, another..or am I safe

10. Am i safe or what!!!

11. mail() injection, am i safe?

12. Am I safe?

13. So am I safe using Pegasus from these jpg Virus's?

14. How safe am I behind ISA Server

15. I am still having mouse problems in safe mode in 98SE att: Mikhail and PCR