Jump to content

Pointer Problem With Class Variable

Recommended Posts



When I want the address of a class variable I get the wrong address when the location is above 0xFF in ram. The high byte is alway 0, the low byte is correct.

Global variables work just fine.


I attached the source to reproduce the problem.


IDE version: SourceBoost IDE version 6.97

Compiler: BoostC++

Compiler version: Compiler version 6.97

Target device: PIC18F97J60

OS: Windowes 7 Home Premium


Regards Frank.


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...