Error: attempt to read uninitilised memory location

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error: attempt to read uninitilised memory location

489 Views
AW60
Contributor I

I have defined one global variable in one .C file and incrementing in in that file. This variable i am reading in other .C file. But when i simulate program in CW it gives above error. How to solve this? I

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

425 Views
CrasyCat
Specialist III

Hello

 

- Which CPU are you targeting (HC08, HC12, Coldfire, ..)
- Which version of CodeWarrior are you using?
  To retrieve that info:
    - Start CodeWarrior
    - Select Help -> About Freescale CodeWarrior
    - Click on "Install Products"
    - CodeWarrior version used is displayed on top in the Installed Products dialog.

 

This message indicates you are attempting to read the variable value before the variable is ever initialized.

There are ways to prevent that but I need to know the answer to above questions to assist.

 

CrasyCat

0 Kudos
Reply