Hi,
I'm trying to run dot net console application via Java :
process = Runtime.getRuntime().exec(commandLine);
I get the following output:
Detecting
The handle is invalid.
when running it directly via the console (windows) there is no problem:
Detecting
100%
Done.
100%
I'm running more applications in this form but have no problem .
Got this stack trace:
Detecting at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\n at
System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)\n at
System.Console.get_CursorTop()\n at AutomaticImageOrientation.HelperClasses.General.
WriteProgressToConsole(Int32 lastIndex, Int32 totalImages)\n at
AutomaticImageOrientation.MainManager.DetectImage(String[] files, String outputPath,
String& globalErrorMessage, Dictionary`2& foundRotations)
The problem is when the .net app trying to write to the console What is the solution ?
found the line that cause the problem:
Console.CursorLeft = 0;
Do you know why ?
Thanks in advance, Shaul.