Everything Interface : Some properties are not working

Using this in the AdHoc Script Editor :

var EVI = DOpus.Create().EverythingInterface();
if (EVI.isrunning) {
	while (EVI.SendCmd(401) != 1) {
		DOpus.Output('Waiting for EV database to be loaded.');
		DOpus.Delay(50);
	}
	DOpus.Output('Autorun : '+EVI.autorun);
	DOpus.Output('Indexed : '+EVI.indexed);
	DOpus.Output('Disks indexed : '+EVI.roots.count);
	DOpus.Output('Version : '+EVI.version);
	DOpus.Output('Version2 : '+EVI.SendCmd(0)+'.'+EVI.SendCmd(1)+'.'+EVI.SendCmd(2)+'.'+EVI.SendCmd(3));
}
else DOpus.Output('Everything is not running.');

I don't get the expected values for indexed,roots and version properties:

Update : Also it looks like the Indexed() method always return false.

Tested with EV 1.4 and 1.5.

It seems ok here (EV 1.4.1.1024):

I'm not entirely sure what the difference could be.
FWIW, I tested it using a portable version (for both versions)
Can anyone else confirm if that could be the cause?

Interesting. Aparently, if EV (despite version) starts after DO, and you don't exit/reboot DO, those properties are not available.

Can you give me instructions to reproduce it?

Sure. In 13.9.5, I can reproduce as follows:

  1. Make sure EV is not set to start on boot (even as a service).
  2. Reboot the computer. (Yes, seriously! :smile:)
  3. After DO starts, make sure EV is not running in the background.
  4. Start EV.
  5. Run the snippet from above in the Ad-Hoc Script Editor.

I'm not sure why this doesn't occur if you only exit from DO and EV, without rebooting the computer, though.

I still can't reproduce it here, but I've made a change for 13.9.6 which might help.

1 Like

As far as I'm concerned, this is OK in 13.9.6. Thanks for the support!

1 Like