I'm trying to track down a memory corruption in some locally-modified OBForceField code. Throughout forcefield.cpp I see memcpys like the following:
memcpy((char*)origCoords,(char*)_mol.GetCoordinates(),sizeof(double)*_ncoords); However, both origCorrds and _mol.GetCoordinates are (double*) not (char*). Is this not an error? Could this be the source of some problems? (Naturally, I'm currently checking to see whether converting from char to double is fixing my problem...not so far...:-/ ) - Noel ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ OpenBabel-Devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbabel-devel
