Re: Problem porting from STLPort 4.5 to VC++ 7?
- From: "Neal Davis" <davisnNoSpam@NoSpamItronixDotcom>
- Date: Wed, 15 Mar 2006 07:32:35 -0800
Igor;
Yes I see that - well pigs really can fly given enough thrust but you really
can't access an array out of bounds no matter how much thrust!
Thanks!
Neal Davis
"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote in message
news:OlKyqx%23RGHA.4960@xxxxxxxxxxxxxxxxxxxxxxx
"Neal Davis" <davisnNoSpam@NoSpamItronixDotcom> wrote in message
news:%23V%23px%236RGHA.4960@xxxxxxxxxxxxxxxxxxxx
mAuditComponentPtr[8]->SelectById(aAuditObservation.mIds[8]);
Note mIds[8]
header for class CAuditObservation
class CAuditObservation
{
public:
typedef std::vector<int> tIds;
tIds mIds;
CString mNote;
CAuditObservation():mIds(8,0),mNote( ){};
Note that mIds is created to have 8 elements, indexed 0 through 7.
You are accessing an element out of bounds.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Problem porting from STLPort 4.5 to VC++ 7?
- From: Neal Davis
- Re: Problem porting from STLPort 4.5 to VC++ 7?
- From: Igor Tandetnik
- Re: Problem porting from STLPort 4.5 to VC++ 7?
- From: Igor Tandetnik
- Problem porting from STLPort 4.5 to VC++ 7?
- Prev by Date: Re: Problem with reading an int with operator>>
- Next by Date: Can't use function binder with reference parameter
- Previous by thread: Re: Problem porting from STLPort 4.5 to VC++ 7?
- Next by thread: Can't use function binder with reference parameter
- Index(es):
Relevant Pages
|