Menu

#3 cInChI-1.exe "hangs" with /InChI2Struct option

open
nobody
None
5
2008-09-05
2008-09-05
No

(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";

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.