Hi,
You should probably test the result from SetInAndOutFormats, just to be sure.
If that step failed, you're in trouble. Do you get the error regardless of what
format you're using for output?
Kind regards,
Fredrik
4 dec 2012 kl. 10:16 skrev mpillong max.pill...@pharma.ethz.ch:
Hmmm, sorry
Hey Fredrik,
thanks for the input. The SetInAndOutFormat returns true, so I'm guessing
there's nothing worng here. I've experienced this error with several
inputfiles of varying format (pdb, sdf, mol2).
Best regards,
Max
--
View this message in context:
Ah yes, my bad! Of course, I have also tried different output formats, but
the error remains the same!
--
View this message in context:
http://forums.openbabel.org/Invalid-memory-access-during-OBConversion-WriteFile-tp4655729p4655737.html
Sent from the General discussion mailing list archive
Can you provide a complete program that exhibits the problem? Please
make it as small as possible.
On 4 December 2012 10:06, mpillong max.pill...@pharma.ethz.ch wrote:
Ah yes, my bad! Of course, I have also tried different output formats, but
the error remains the same!
--
View this
Sure thing! Is the code sufficient, or would you need a runnable jar?
package TestClasses;
import org.openbabel.OBConversion;
import org.openbabel.OBMol;
public class TestOBWriteFile {
public static void main(String[] args) {