DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Autoquit alternative

Hi, im using autoquit in my script. but now its obsolete, and in Diadem 2020, when i run it after closing dialog whre user select CLOSE, i got my autoquit. but it gives me this error message all the time

 

 Error in <Jonas.VBS> (Line: 12, Column: 19):
     Error while executing "("C:\LOCAL\Jonas\Jonas_Base.vbs")" command
     Error type:  UNKNOWN
     Error address: 00013048
     Module name:KERNELBASE.dll

 

I know about Err.Raise, but it gives me alert message with the error, because i dont want to put conditions after the code with my autoquit. im searching for alternative function which will kill the script at the place i tell it and dont asks nothing.

What we got on stock in D2020 please? .) 

0 Kudos
Message 1 of 3
(1,777 Views)

Hi Lukas,

 

I also prefer AutoQuit("Message") to Err.Raise() and still use it for DIAdem VBScripts and SUDialog VBScripts, even though it has shown up without color highlighting for many, many versions.  I think the stated reason for deprecating the function was that it caused trouble in event-based implementations such as VBScript UserCommands that are called when context menus are selected or cursor movements occurred, etc.

 

When I call AutoQuit() in DIAdem 2020, it still performs correctly.  Are you sure that's the line that's throwing the error?  Are you running the VBScript in some special context, such as in a DIAdem Worker, or as an Analysis Server task simulation or in one of the above-mentioned UserCommand type situations?

 

I think it should still work for you,

Brad Turpin

Principal Technical Support Engineer

National Instruments

0 Kudos
Message 2 of 3
(1,736 Views)

Hi,

Im sure that its causing the autoquit. cause when i comment it, i dont get the error message.I dont run it in some special context.

 

I dont know if my installation of d2020 is some kind of crashed or what, cause i got the KERNEL error messages daily.

For example now, i got the error message in logfile you can see on the screen i attached:

Module name: KERNELBASE.DLL, eRROR ADDRESS: 00013048

 

When i selected the channel name from logfile and i pressed CTRL+C, i got another error on the screen, after clicking OK, diadem crashes and i have to start it again.

 

I will try reinstalling this version with ther D2020 SP1 and i hope it will solve this, cause this version crashes to me daily with some weird behaviour.

 

Dcrash.png

0 Kudos
Message 3 of 3
(1,693 Views)