|
Boost Users : |
From: Javier Estrada (JEstrada_at_[hidden])
Date: 2006-12-08 18:55:14
I'm having a problem with tokenizer::iterator crashing the program when
I increment it.
I'm using it in a similar scope:
In class constructor:
{
tokenizer tokens(...);
tokenizer::iterator tokenIterator;
}
In a member function:
{
tokens.assign(string("1234#4567#1##"), separator("#"));
tokenIterator = tokens.begin();
// use token iterator
}
In another member function:
{
cout << "token: " << *tokenIterator << endl;
++tokenIterator;
^^^
crash occurs in this instruction
}
I've verified:
- Everything happens in the same thread (it's a multithreaded app)
- tokenIterator != tokens.end();
Can anybody offer some insight?
Regards,
Javier
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net