(for version 1.01 on Windows Vista)
Calling the cInChI-1.exe with the /InChI2Struct option from within a Java program (see example below) seems to "hang" while waiting for the process to finish, despite the fact that all the files have been written and the output indicates that processing is finished. Maybe this is a bug and the process is not returning an appropriate exit value with the /InChI2Struct option?
example:
String command = "cInChI-1.exe inchiFile.inchi tempFile.txt /InChI2Struct";
Process inchiProc1 = Runtime.getRuntime().exec(command);";
int exitValue = inchiProc2.waitFor(); //code hangs here
The problem does NOT seem to occur when the same command is run from the command line. Also, the problem does NOT seem to occur with the /OutputSDF option:
String command = "cInChI-1.exe tempFile.txt molFile.mol /OutputSDF";