Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7793503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:30:33+00:00 2026-06-01T22:30:33+00:00

I am currently getting an 0xC0000005: Access violation reading location 0xcccccce0. error and I

  • 0

I am currently getting an “0xC0000005: Access violation reading location 0xcccccce0.” error and I have tried diagnose the problem…I think the problem comes in when my rule of 3 that I have defined comes in play and points me to here.

size_type size() const
    {   // return length of sequence
    return (this->_Mysize); <---------------------this line
    }

I’m actually not sure if there is any problem at all, I have been dwelling on this for days on end.

Below is my rule of three

ArrayStorage::ArrayStorage(){
     myArray = new string[7079];
}

ArrayStorage::~ArrayStorage(){
    delete[] _data;
    delete[] myArray;
}

ArrayStorage::ArrayStorage(const ArrayStorage &A) {
    _size = A.size();
    _data = new string [size()];
    for (int i = 0; i < size(); ++i)
        _data[i] = A[i];
}

ArrayStorage& ArrayStorage::operator=(const ArrayStorage &A){
    if (this != &A) {
        delete [] _data;
        _size = A.size();
        _data = new string [A.size()];
        for (int i = 0; i < size(); ++i) {
             _data[i] = A[i];
        }
    }
    return *this;
}

const string& ArrayStorage::operator[](int i) const{
    assert((i >= 0) && (i < size()));
    return _data[i];
}

string& ArrayStorage::operator[](int i){
    assert((i >= 0) && (i < size()));
    return _data[i];
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:30:35+00:00Added an answer on June 1, 2026 at 10:30 pm

    When uninitialized, stack variables are filled with 0xCC bytes if compiled with msvc. So 0xcccccce0 is probably the result of “this” being an uninitialized pointer variable on the stack plus _MySize offset in the object structure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently getting this following error: You do not have permission to view this directory
I'm currently getting a Could not load type UI.Administration.Site.master error message and I'm not
I'm doing a Firefox addon but I'm currently getting this error in the Error
I'm using prepared statements and MySQLi, and am currently getting this error. PHP Catchable
The exact error I am getting is First-chance exception at 0x0096234a in chp2.exe: 0xC0000005:
im currently getting these error on my site: Warning: array_keys() [function.array-keys]: The first argument
I'm currently getting a 500 error (apparently) on a url of mine, even though
here is my urls.py and am currently getting the error: tuple object has no
I am currently getting this error in my phpmyadmin: 2002 - The server is
I'm currently getting the error Plugin classpath does not exist for plugin definition at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.