Re: Problem porting from STLPort 4.5 to VC++ 7?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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



.



Relevant Pages

  • Re: Different aircraft design.
    ... enough thrust, even pigs will fly. ... freak out the UFO nuts. ...
    (rec.aviation.homebuilt)
  • Re: ot: My 2nd favorite Palin quote
    ... one knows when an unborn child becomes human. ... This seems to be the thrust of your argument, ... It doesn't matter what label you put on it. ...
    (rec.gambling.poker)
  • Re: Underbetting - The road to ruin
    ... I think the main thrust of your post is not to gamble higher than you ... It doesn't matter if it is limit, no-limit, or any ...
    (rec.gambling.poker)