ES-1.1.0.23 with Everything-1.5.0.1298a: Error 8: Everything IPC window not found

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Blackmeser
Posts: 4
Joined: Tue Feb 01, 2022 2:39 pm

ES-1.1.0.23 with Everything-1.5.0.1298a: Error 8: Everything IPC window not found

Post by Blackmeser »

I installed Everything-1.5.0.1298a with service on Win7x64 (service is working)

And I try use ES-1.1.0.23:

Code: Select all

es -size -dm sizecolor 13 -dmcolor 11 -sort dm -n 10
es -ipc1 -size -dm sizecolor 13 -dmcolor 11 -sort dm -n 10
es -ipc2 -size -dm sizecolor 13 -dmcolor 11 -sort dm -n 10
And every time I get eror:

Code: Select all

Error 8: Everything IPC window not found. Please make sure Everything is running
I check pipelist with pipelist64.exe from sysinternals, and I found: Everything Service (1.5a)
When window is closed , and closed from tray - pipe exist too.

I was tryed use ES.exe when window is opened and closed situations.

Why I got that error, and how fix it?
therube
Posts: 4979
Joined: Thu Sep 03, 2009 6:48 pm

Re: ES-1.1.0.23 with Everything-1.5.0.1298a: Error 8: Everything IPC window not found

Post by therube »

Most likely, Everything is using an -instance name.
And you need to supply that same -instance name to ES.

So something like,
ES.exe -instance 1.5 *



(There is a way to have 1.5 alpha not require the use of an -instance name.
[Search should find it. I don't know offhand.])
Blackmeser
Posts: 4
Joined: Tue Feb 01, 2022 2:39 pm

Re: ES-1.1.0.23 with Everything-1.5.0.1298a: Error 8: Everything IPC window not found

Post by Blackmeser »

Found the way in C#

Code: Select all

		[DllImport("Everything64.dll")]
		public static extern void Everything_SetReplyWindow(IntPtr nIndex);

		public Form1()
		{
			InitializeComponent();
			string ev64 = "Everything64.exe";
			string ev = "Everything.exe";
			string Everything = "Everything";
			var pipes = System.IO.Directory.GetFiles(@"\\.\pipe\");
			var pipes_filtered = pipes.Where(w => w.Contains(Everything)).ToArray();
			string pipe = string.Empty;
			if (pipes_filtered.Length != 1)
			{
				if (pipes_filtered.Length == 0)
					MessageBox.Show("Not found IPC");
				else
					MessageBox.Show($"Found more then 1 IPC, Pipes:\n{string.Join("\n", pipes_filtered)}");
			}
			else
				pipe = pipes_filtered[0];
			bool predicate(Process p) =>
				p.MainModule.ModuleName.Contains(ev)
				|| p.MainModule.ModuleName.Contains(ev64)
				|| p.MainWindowTitle.Contains(Everything);
			var pp = Process.GetProcesses().Where(predicate).FirstOrDefault();
			Everything_SetReplyWindow(pp.MainWindowHandle);
		}

		private void button1_Click(object sender, EventArgs e)
		{
			UInt32 i;

			Everything_SetSearchW(textBox1.Text);
			Everything_SetRequestFlags(EVERYTHING_REQUEST_FILE_NAME | EVERYTHING_REQUEST_PATH | EVERYTHING_REQUEST_DATE_MODIFIED | EVERYTHING_REQUEST_SIZE | EVERYTHING_REQUEST_HIGHLIGHTED_FULL_PATH_AND_FILE_NAME);

			Everything_SetSort(13);
			Everything_QueryW(true);		
			listBox1.Items.Clear();
			Text = textBox1.Text + " - " + Everything_GetNumResults() + " Results";

			listBox1.SuspendLayout();
			uint count = Everything_GetNumResults();
			string[] arr = new string[count];
			for (i = 0; i < count; i++)
			{
				long date_modified;
				long size;
				string filename;
				string fullpath;

				Everything_GetResultDateModified(i, out date_modified);
				Everything_GetResultSize(i, out size);
				filename = Marshal.PtrToStringUni(Everything_GetResultFileName(i));
				fullpath = Marshal.PtrToStringUni(Everything_GetResultHighlightedFullPathAndFileName(i)).Replace("*", "");

				string ds = " Date Modified: " + DateTime.FromFileTime(date_modified).Year + "/" + DateTime.FromFileTime(date_modified).Month + "/" + DateTime.FromFileTime(date_modified).Day + " " + DateTime.FromFileTime(date_modified).Hour + ":" + DateTime.FromFileTime(date_modified).Minute.ToString("D2");
				arr[i] = /*(int)i, */"Size: " + size.ToString() + ds + " Filename: " + filename + " Fullpath: " + fullpath;
			}
			listBox1.Items.AddRange(arr);
			listBox1.ResumeLayout(false);
		}
But how use custom pipename in ES-1.1.0.23 ?
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: ES-1.1.0.23 with Everything-1.5.0.1298a: Error 8: Everything IPC window not found

Post by NotNull »

The alpha version of Everything 1.5 uses a named instance - 1.5a - to be able to run it side-by-side with the stable 1.4 version.

You can use ES.exe -instance 1.5a ... to talk to Everything 1.5.

You probably don't want to type this everytime. Save the instance name to use to a settings file ( ES.ini in the folder where your ES.exe resides), execute the following command:

Code: Select all

ES.exe   -instance 1.5a  -save-settings 
From now on you can do your regular
es -size -dm sizecolor 13 -dmcolor 11 -sort dm -n 10
Blackmeser
Posts: 4
Joined: Tue Feb 01, 2022 2:39 pm

Re: ES-1.1.0.23 with Everything-1.5.0.1298a: Error 8: Everything IPC window not found

Post by Blackmeser »

I think, It's works, but now:

Code: Select all

F:\Distrib\Everything>ES.exe   -instance 1.5a  -save-settings
Settings saved.

F:\Distrib\Everything>es -size -dm sizecolor 13 -dmcolor 11 -sort dm -n 10
Error 3: Out of memory.

F:\Distrib\Everything>es -size -dm sizecolor 13 -dmcolor 11 -sort dm -n 10 "111.jpg"
Error 3: Out of memory.
void
Developer
Posts: 16757
Joined: Fri Oct 16, 2009 11:31 pm

Re: ES-1.1.0.23 with Everything-1.5.0.1298a: Error 8: Everything IPC window not found

Post by void »

How much free memory is available?

Please try the following calls:

Code: Select all

es -size -dm -sizecolor 13 -dmcolor 11 -sort dm -n 10
es -size -dm -sizecolor 13 -dmcolor 11 -sort dm -n 10 "111.jpg"
Blackmeser
Posts: 4
Joined: Tue Feb 01, 2022 2:39 pm

Re: ES-1.1.0.23 with Everything-1.5.0.1298a: Error 8: Everything IPC window not found

Post by Blackmeser »

Yes, I forgot '-' before sizecolor.
Now ES.exe working perfect.
Big thanks!
Post Reply