Thank you very much for quick answer.
I think the problem is in the copying from one vector to another:
for (unsigned int i=9; i < m_vF.size(); i++)
Can this corrupt the content of new vector?
There's nothing in principle wrong with it. Here's a little sample I
On Thu, Feb 4, 2010 at 5:25 PM, Evgueni Kolossov <firstname.lastname@example.org> wrote:
> I have a vector RDKit::MOL_SPTR_VECT m_vF.
> Vector is populated Ok.
> Now i am trying to get mols from this vector:
> nCount = 0;
> RDKit::ROMol *fMol = new RDKit::ROMol(*m_vF[nCount]);
> This will compile OK but will throw an exception on execution in
> T * operator-> () const
> BOOST_ASSERT(px != 0);
> return px;
> which called from ROMol::initFromOther()
> Can you please suggest what is wrong with vector elements access by this
just did that works without problems:
RWMol *m=new RWMol();
ROMOL_SPTR msp((ROMol *)m);
ROMol *nm = new ROMol(*m_vF);
are you 100% certain that the molecules in your vector are ok? You
could test like this:
nCount = 0;
RDKit::ROMol *tMol = m_vF[nCount].get();