Re: [Open Babel] Invalid memory access during OBConversion.WriteFile()

2012-12-04 Thread Fredrik Wallner
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

Re: [Open Babel] Invalid memory access during OBConversion.WriteFile()

2012-12-04 Thread mpillong
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:

Re: [Open Babel] Invalid memory access during OBConversion.WriteFile()

2012-12-04 Thread mpillong
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

Re: [Open Babel] Invalid memory access during OBConversion.WriteFile()

2012-12-04 Thread Noel O'Boyle
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

Re: [Open Babel] Invalid memory access during OBConversion.WriteFile()

2012-12-04 Thread mpillong
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) {