Hi, I was more curious about the output format, not the format of the input files. If the problem is indeed in the writing, it would be interesting to know if it is a specific format or something more general.
/Fredrik 4 dec 2012 kl. 10:44 skrev Max Pillong <max.pill...@pharma.ethz.ch>: > 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 > > Am 04/12/2012 10:41, schrieb 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 about that, I was using the < raw > Tag here ... but here's the >>> original text. >>> >>> Hey everyone, >>> >>> I am currently running OpenBabel on a MacOSX 10.6.8 in Eclipse with Java. >>> Recently, I encountered the following exception during using the WriteFile() >>> Method in OBConversion: >>> >>> 'Invalid memory access of location 0xfffffffb25991558 rip=0x7fff888cb683' >>> >>> >>> I have used the same method to write molecules before, the code looks like >>> this: >>> >>> public static void writeOBMolecule(OBMol mol, String output, String format){ >>> OBConversion obc=new OBConversion(); >>> obc.SetInAndOutFormats(format, format); >>> obc.WriteFile(mol, output); >>> } >>> >>> >>> I have tried multiple *.pdb files, the same error occurs every time >>> (although the location does change every time). Any thoughts on this? >>> >>> Thanks in advance! >>> >>> Max >>> >>> >>> >>> -- >>> View this message in context: >>> http://forums.openbabel.org/Invalid-memory-access-during-OBConversion-WriteFile-tp4655729p4655731.html >>> Sent from the General discussion mailing list archive at Nabble.com. >>> >>> ------------------------------------------------------------------------------ >>> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >>> Remotely access PCs and mobile devices and provide instant support >>> Improve your efficiency, and focus on delivering more value-add services >>> Discover what IT Professionals Know. Rescue delivers >>> http://p.sf.net/sfu/logmein_12329d2d >>> _______________________________________________ >>> OpenBabel-discuss mailing list >>> OpenBabel-discuss@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss > > > -- > ETH Zurich > Computer-assisted Drug Design > Dipl.-Bioinf. Max Pillong > Institute of Pharmaceutical Sciences > HCI G 496 > Wolfgang-Pauli-Str. 10 > 8093 Zürich, SWITZERLAND > > Phone: +41 44 633 91 56 > E-Mail: max.pill...@pharma.ethz.ch > ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss