BUG-0010183: Error in a Viewer’s script after AlarmServer’s Deactivate method has been called.

OVERVIEW

In a script executed in the Viewer, the reference to AlarmServer object is lost after Deactivate method has been called. This can cause script error, should it be used again afterwards.

HOW CAN I REPRODUCE THIS PROBLEM?

Run the following script in an application:

DIM alarmServer
SET alarmServer = Application.GetObject(“AlarmServer”)
alarmServer.Deactivate()
alarmServer.Activate() ‘ <=== script error!!!

There is a script error in the fourth line, because there are no more references to “AlarmServer” object.

WORKAROUND

To get around this problem, you must add Application object’s GetObject command after AlarmServer‘s Deactivate method. This causes the reference to the object to be added to AlarmServer variable again. The commands list will look like this:

DIM alarmServer
SET alarmServer = Application.GetObject(“AlarmServer”)
alarmServer.Deactivate()
SET alarmServer = Application.GetObject(“AlarmServer”)
alarmServer.Activate()

SITUATION

Elipse Software has confirmed that this is in fact a bug from the products listed by the end of this article. The correction download can be found here

THIS ARTICLE APPLIES TO THESE PRODUCTS

Elipse E3 version 2.0 or lower
Elipse E3 version 2.5
Elipse E3 version 3.0
Elipse E3 version 3.1

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *