User Forum    :: Powered by YaBB
  « MIDI-OX User Forum - Exiting MIDIOx via VBScript »
Welcome, Guest. Please Login or Register.
Sep 15th, 2024, 12:44am


Home Home Help Help Search Search Members Members Login Login Register Register


   MIDI-OX User Forum
   MIDI-OX
   Scripting Questions
(Moderator: Jamie OConnell)
   Exiting MIDIOx via VBScript
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Exiting MIDIOx via VBScript  (Read 3705 times)
doggyaugie
New Member
*



MIDI-OX Rules!

   


Posts: 2
Exiting MIDIOx via VBScript
« on: Feb 26th, 2008, 1:50pm »
Quote Quote Modify Modify

I have a question that seems simple enough yet I can't seem to find the answer in any documentation or any sample scripts, and trial and error has not been helpful either.  So I really hope someone is able to help me out.
 
I am trying to do some automation with VBscript, MidiOx, and an audio measurement unit.  The measurement unit comes with its own software that can, on its own, be controlled by vbscript just fine.  However, when I try to incorporate everything into one vbs file, the audio measurement software will not close and my script hangs.
 
I have successfully determined that the only thing causing this issue is MidiOx staying open.  I don't want to have to go to "Exit WScript" or exit the program manually, I just want to control MidiOx exiting from my vbscript.  What I want to know is this: is there a destructor for the MidiOx object?  If not, is there some way to just close the program when I'm finished with it, but not finished with my script?
« Last Edit: Feb 26th, 2008, 1:53pm by doggyaugie » IP Logged
Jamie OConnell
Administrator
*****






   
WWW Email

Gender: male
Posts: 2027
Re: Exiting MIDIOx via VBScript
« Reply #1 on: Mar 1st, 2008, 2:41am »
Quote Quote Modify Modify

Yes, MIDI-OX COM object will destruct when you set it to NULL excplicitely or when the script ends.
 
example:
mox.ShutdownAtEnd = True
set mox = nothing
IP Logged

--Jamie
Music is its own reward.

doggyaugie
New Member
*



MIDI-OX Rules!

   


Posts: 2
Re: Exiting MIDIOx via VBScript
« Reply #2 on: Mar 3rd, 2008, 2:34pm »
Quote Quote Modify Modify

Thanks for the help.  However, my issue is not resolved.
 
I had tried your suggestion many times before posting, and indeed tried again after reading your response, but I still have never been able to close the MidiOx COM object strictly before the end of the script.
 
Any other suggestions are much appreciated.
« Last Edit: Mar 3rd, 2008, 2:35pm by doggyaugie » IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »


MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.