Strange CObArray access violation
- From: "tim@xxxxxxxxxxxxxxxxxxxxxx" <tim@xxxxxxxxxxxxxx>
- Date: 22 Feb 2006 15:33:37 -0800
I have a CObArray which I've been using for some time within a class
(derived from CDocument). I've added a new member function which
throws an access violation exception every time I try to access the
array.
The exception is thrown with the following line:
int arraySize = m_AtomArray.GetSize();
The access violation shows up here:
_AFXCOLL_INLINE int CObArray::GetSize() const
{ return m_nSize; }
I have initialized the array within the Class initialization list, and
successfully traced the size of that array within the class
constructor. As I have already mentioned, other member functions
access the array with no problems.
I am very confused about this! - any ideas?
Thanks
Tim
.
- Follow-Ups:
- Re: Strange CObArray access violation
- From: Oleg Starodumov
- Re: Strange CObArray access violation
- From: jSmith
- Re: Strange CObArray access violation
- Prev by Date: Re: Programmatically Expand or Collapse a sub menu - Solved
- Next by Date: Re: Strange CObArray access violation
- Previous by thread: automatically generate a template class for a specified interface
- Next by thread: Re: Strange CObArray access violation
- Index(es):
Relevant Pages
|