[OpenBabel-Devel] Segfault when deleting OBForceField

2010-10-13 Thread Noel O'Boyle
Hi all, I'm getting a segfault on MSVC when I delete a pointer to an OBForceField (or indeed an OBOp). But this should work okay right? // Define location of file formats for testing OBConversion conv; OBForceField *pff = OBForceField::FindForceField(MMFF94); if (pff == NULL) {

Re: [OpenBabel-Devel] Segfault when deleting OBForceField

2010-10-13 Thread Geoffrey Hutchison
I'm getting a segfault on MSVC when I delete a pointer to an OBForceField (or indeed an OBOp). But this should work okay right? No. These are static unique objects. We don't delete formats or other plugins either. The reason I'm doing this is that I want to create a new pff that is wiped

Re: [OpenBabel-Devel] Segfault when deleting OBForceField

2010-10-13 Thread David Lonie
On Wed, Oct 13, 2010 at 11:47 AM, Geoffrey Hutchison ge...@geoffhutchison.net wrote: I'm getting a segfault on MSVC when I delete a pointer to an OBForceField (or indeed an OBOp). But this should work okay right? No. These are static unique objects. We don't delete formats or other plugins