MTS ObjectControl 
Author Message
 MTS ObjectControl

I'm trying to use ObjectContext to get the ASP built-in objects as described
in "Developing a Visual Basic Component for IIS/MTS".

Question: Should the ObjectControl_Activate Sub fire every time I reference
the object?

Situation:

Set oObject = Server.CreateObject("SomeObject.someClass")
oObject.setProps "A", "B", "C"
lResult = oObject.save()
Set oObject = Nothing

In the case above I'm seeing Activate fire twice?  Once when I call setProps
and once when I call save.  I was expecting it to be called once for the
whole session...  What am I missing here?

 - Paul



Tue, 23 Jul 2002 03:00:00 GMT  
 MTS ObjectControl
Never mind!  I missed the line in the Deactivate doc that says the object
deactivates after any method calls setComplete or setAbort....

 - Paul


Quote:
> I'm trying to use ObjectContext to get the ASP built-in objects as
described
> in "Developing a Visual Basic Component for IIS/MTS".

> Question: Should the ObjectControl_Activate Sub fire every time I
reference
> the object?

> Situation:

> Set oObject = Server.CreateObject("SomeObject.someClass")
> oObject.setProps "A", "B", "C"
> lResult = oObject.save()
> Set oObject = Nothing

> In the case above I'm seeing Activate fire twice?  Once when I call
setProps
> and once when I call save.  I was expecting it to be called once for the
> whole session...  What am I missing here?

>  - Paul



Wed, 24 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VB6 in Win2k to compile MTS ObjectControl

2. ObjectControl.createInstance() - when to do it?

3. Visual Modeller, Generalization, VB6 and ObjectControl

4. CreateObject vs New, with Implements ObjectControl

5. COM+ and ObjectControl

6. Looking for MTS SDK and MTS Spy

7. newbie - COM with MTS Vs COM without MTS

8. MTS and Non MTS objects from same code

9. Do I really need MTxAS.ObjectControl? Plz Help.

10. Newbie:"MTS not installed or wrong version" Msg while creating MTS Activex DLL in VB

11. a dll writted for execution under MTS (or COM+) is also running in an environment without MTS (such as Windows95/98/Me) ?

12. When to use "Implements ObjectControl" in MTS2.0?

 

 
Powered by phpBB® Forum Software