SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
24x7 COM Connections

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
24x7 COM Connections
Author Message
thuan



Joined: 29 Aug 2002
Posts: 22

Post 24x7 COM Connections Reply with quote

I've successfully established Remote connections to our servers
using 24x7RemoteControl COM objects, however I was depending on
the ConnectedToRemote property of the 24x7RemoteControlCOM object
before closing the session.

I'm reading no values for this property, so my CloseSession calls
were never executed. Does this leave sessions open? Though I have
been setting my COM object to NOTHING before exiting my application.

In other words, do I leave orphaned open sessions if I don't call the CloseSession
method, even if I set my 24x7 COM object to Nothing?

Thanks!

Thu May 15, 2003 7:47 pm View user's profile Send private message
thuan



Joined: 29 Aug 2002
Posts: 22

Post Re: 24x7 COM Connections Reply with quote

P.S.

I've tested the 24x7COM Object itself, and that appears to be
the correct boolean value for whether there is a connection or not.

: I've successfully established Remote connections to our servers
: using 24x7RemoteControl COM objects, however I was depending on
: the ConnectedToRemote property of the 24x7RemoteControlCOM object
: before closing the session.

: I'm reading no values for this property, so my CloseSession calls
: were never executed. Does this leave sessions open? Though I have
: been setting my COM object to NOTHING before exiting my application.

: In other words, do I leave orphaned open sessions if I don't call the
: CloseSession
: method, even if I set my 24x7 COM object to Nothing?

: Thanks!

Thu May 15, 2003 7:59 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7968

Post Re: 24x7 COM Connections Reply with quote

The com object should automatically close session when it is being destroyed (set to nothing). You can easily check it if you enable the tracing feature on the client. I nthe trace you can then see messages like the following

DPB02 Connection(07FA07C0): DisconnectServer: ... (00000000)
DPB02 Connection(07FA07C0): DisconnectServer: SUCCEEDED (00000000)
DPB45 SessionId (00FD47B0): Release Object: instanceId(00000088)

: P.S.

: I've tested the 24x7COM Object itself, and that appears to be
: the correct boolean value for whether there is a connection or not.

Thu May 15, 2003 10:29 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.