Error: attempt to read uninitilised memory location

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Error: attempt to read uninitilised memory location

363件の閲覧回数
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

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

299件の閲覧回数
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 件の賞賛
返信