Octave.NET icon indicating copy to clipboard operation
Octave.NET copied to clipboard

Octave 7.2.0

Open php-gamesontrack opened this issue 3 years ago • 3 comments

I have tested your solution with Octave 7.2.0 and you should know the application name 'octave-cli.exe' has changed to 'octave-launch.exe'. Also notice that 'octave-launch.exe' is now used for both GUI and CLI by using arguments: GUI: "C:\Program Files\GNU Octave\Octave-7.2.0\octave-launch.exe" --gui CLI: "C:\Program Files\GNU Octave\Octave-7.2.0\octave-launch.exe" --no-gui

  1. In OctaveGlobal.cs the application name is changed:

     private const string OctaveExecutable = "octave-launch";
    
  2. In OctaveProcess.cs the Arguments "--no-gui" is added:

         StartInfo = new ProcessStartInfo()
         {
             FileName = octaveCliPath,
             RedirectStandardInput = true,
             RedirectStandardOutput = true,
             RedirectStandardError = true,
             UseShellExecute = false,
             CreateNoWindow = true,
             Arguments = "--no-gui"
         };
    

php-gamesontrack avatar Aug 31 '22 07:08 php-gamesontrack

Hi. You should be able to pass the name of executable via "OctaveSettings.OctaveCliPath".

triforcely avatar Sep 07 '22 09:09 triforcely

Thanks, but that doesn't count for the Arguments right?

Another thing: Have you tested your solution lately with a call from WPF to Octave 7.2.0? When I do this, there is no result returned. The Octave prompt is visible, but nothing happens. (The solution works from a console app.)

php-gamesontrack avatar Sep 07 '22 10:09 php-gamesontrack

@php-gamesontrack octave-cli.exe is still there, in my case in Octave-7.2.0\mingw64\bin folder. Not sure about WPF but I don't see any reason why it would break. You might be blocking the thread that OctaveContext is running on, therefore you are not getting any output.

triforcely avatar Feb 06 '23 10:02 triforcely