Hi On Thu, 2010-10-14 at 11:56 +0100, Noel O'Boyle wrote: > memcpy((char*)origCoords,(char*)_mol.GetCoordinates(),sizeof(double)*_ncoords); > > However, both origCorrds and _mol.GetCoordinates are (double*) not > (char*). Is this not an error? No, a pointer has X bytes regardless whether it points to a char, double (or void :-)
An it will copy _ncoords times the space required for sizeof(double). The error would be if it used sizeof(char). Yours, Steffen (who is still hunting a memory related problem in pgchem ...) -- IPB Halle AG Massenspektrometrie & Bioinformatik Dr. Steffen Neumann http://www.IPB-Halle.DE Weinberg 3 http://msbi.bic-gh.de 06120 Halle Tel. +49 (0) 345 5582 - 1470 +49 (0) 345 5582 - 0 sneumann(at)IPB-Halle.DE Fax. +49 (0) 345 5582 - 1409 ------------------------------------------------------------------------------ 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 OpenBabel-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-devel