STL member variable initalization issue with windows API

Posted by Django on Stack Overflow See other posts from Stack Overflow or by Django
Published on 2010-05-19T01:11:17Z Indexed on 2010/05/19 1:20 UTC
Read the original article Hit count: 242

Filed under:
|
|

I am creating a windows app that uses a vector of stings as a member variable. For some reason, I can compile but when it tries to get at any of the vectors members is crashes. the error is 0xC0000005: Access violation reading location 0xcdcdcdd9. in the member function of the vector class.

this is the size() function where it breaks.

size_type capacity() const
{ // return current length of allocated storage
  return (this->_Myend - this->_Myfirst);
}

I am using visual studios 2010.

thank you Django

© Stack Overflow or respective owner

Related posts about vc++

Related posts about stl