Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple processes running in Lookout.

I have a main process that loads the secondary process when needed. In order to avoid the generated alarm when the secondary is intented to be loaded twice, How do I know from the main that the secondary is already running?
0 Kudos
Message 1 of 4
(3,186 Views)



You may use the Monitor object. You can set it to observe any boolean on a process, thus checking the state of the process. Online help has more dtails on this Object.

Regards,

Khalid


Message 2 of 4
(3,186 Views)
checking the state of the process.....How?

Thanks in advance.
0 Kudos
Message 3 of 4
(3,186 Views)



You would check for a boolean which would always be TRUE when the process is running. If the boolean is returned as FALSE, you know the process is not running. Thus, checking this boolean would let you know if the process is running or not.

One such boolean, for instance, could be a dummy Expression object set to TRUE. (This Expression would obviously become false if the process itself is not running). Let's say this is in Process1.

For the Monitor object in, say, Process2, you would put the following

Output goes high if quality of expression =
\\.\Process1\Exp1



And put zero for the seconds setting.

In your Process2 (where you have created the Monitor object), you can now use the Monitor imp
licit datamember to check the status of Process1.

Hope this helps.

Khalid


0 Kudos
Message 4 of 4
(3,186 Views)