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 609873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:36:49+00:00 2026-05-13T17:36:49+00:00

Please view this image of the crash after I choose to debug it in

  • 0

Please view this image of the crash after I choose to debug it in MVS2010:
http://i48.tinypic.com/dr8q9u.jpg

Here’s the Game.h header that shows the Game class structure, and in the picture you will see the offending method that’s causing the access violation (setBot(botInfo * b)).

class botInfo; // Forward declaration

class Game {
 int gameState;
 int flagDropTime;
 botInfo * bot;
public:
 Game();
 ~Game(void);
 void startGame();
 void gameOver(int victoriousTeam);
 void resetBall();
 void hideBall();
 int getState();

 void setBot(botInfo * bot);
 botInfo * getBot();
};

From an instance of botInfo (another class) I’m calling a function with this code,
(Game _dsbTrench is a member variable of the botInfo instance).

botInfo * botPointer = this;
_dsbTrench->setBot(botPointer);

Problem is, whenever I call this it causes an exception:
Unhandled exception at 0x72332569 (PubBot.dll) in MERVBot.exe: 0xC0000005: Access violation writing location 0xcdcdcdd5.

So whats the cause of this error? And how can I fix it?

Thanks.

  • 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-05-13T17:36:49+00:00Added an answer on May 13, 2026 at 5:36 pm

    I don’t think there is enough information for me to help. But I will try.

    You are writing to memory that is not assigned to your program by the operating system — you need to allocate the memory before you write to it.

    1. You should not be passing the this parameter to other functions — your offset calculations are probably off — can’t you use a reference ? .
    2. Have you allocated memory for dsbtrench ?

    — edit —

    As mentioned by the other answers”0xCDCDCDCD” is a sentinel variable used for uninitialized words.

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

Sidebar

Related Questions

Please view image of Google maps fig 1. from the link below: http://www.androidpatterns.com/uap_pattern/search-%E2%80%93-main-menu Currently
Could you please help me to get image upload working on a view with
Please look at the image below !! So in this image... You can see
Please view the code and gaps between the images shown here: http://jsfiddle.net/uyVZj/2/ In Firefox
In My Application i have View like this image: Now, I want to make
I have an image view I wanna animate this image view in upward direction
Please have a look on this image The whole review section will slide according
The photo (please view): Example Hey guys, I'm new here.. I'm also new to
can some buddy please suggest how to disable view button on cgridview widget and
Can someone please explain how you can write a url pattern and view that

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.