rosenk
Programmer
- Jan 16, 2003
- 403
I've tried several different ways to close a session, but the only one that I can get to work is unreasonable. (In particular, System.Quit -- this is unreasonable because it closes ALL sessions, not just the one I want to close.)
Here's a trimmed down example of one of the things I've tried:
Sess0 is definitely a reference to the session that I want to close at the point that I get to the Sess0.Close call. I've verified this by doing
I've also tried calling
and variations including making sure the session is visible, making sure it's not visible, making sure it's connected and/or not connected. All combinations of these, basically.
Any ideas on how I can make sure the session closes?
Thanks.
Here's a trimmed down example of one of the things I've tried:
Code:
Set System = CreateObject("EXTRA.System")
Set Sessions = System.Sessions
Set Sess0 = Sessions.Item(SessionName)
Sess0.Close
Sess0 is definitely a reference to the session that I want to close at the point that I get to the Sess0.Close call. I've verified this by doing
Code:
Sess0.Visible = 0
I've also tried calling
Code:
Sess0.CloseEx 9
Any ideas on how I can make sure the session closes?
Thanks.