Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi, all,

I compiled my program without any problems. But it failed to launch on the emulator.
Here is the error message.

The instruction at "0x111e90d"/"0x0118eedb" referenced memory at "0x00000000". The memory could not be "read".

Click OK to terminate.
Click CANCEL to debug.

What is the meaning ot this error and any solutions?

Thank you.

Maybe you could try debugging first ? Breakpoints are useful, you should learn how to use them.
Many things can cause that sort of problem. It's most likely a null-pointer reference, but we can't help you with that kind of description.

Maybe you could try debugging first ? Breakpoints are useful, you should learn how to use them.
Many things can cause that sort of problem. It's most likely a null-pointer reference, but we can't help you with that kind of description.

It is giving me error of null pointer .i.e memory can not be read at 0x000000
what I should do to draw a circle.Please help me, I am new to brew :mad:
// code in AEEApp extended class
IGraphics *pIGraphics;
AEECircle circle;
// code in event handler
case EVT_KEY:
IDISPLAY_ClearScreen(this->m_pIDisplay);
switch(wParam)
{
case AVK_0:
drawString(m_pIDisplay, "KEY 0", 50, 50);
break;
case AVK_1:
//drawString(m_pIDisplay, "KEY 1", 50, 50);
circle.cx=50;
circle.cy=50;
circle.r=10;
IGRAPHICS_ClearViewport(pIGraphics);
IGRAPHICS_DrawCircle(pIGraphics,&circle);
IGRAPHICS_Update(pIGraphics);

It is giving me error of null pointer .i.e memory can not be read at 0x000000
what I should do to draw a circle.Please help me, I am new to brew :mad:
// code in AEEApp extended class
IGraphics *pIGraphics;
AEECircle circle;
// code in event handler
case EVT_KEY:
IDISPLAY_ClearScreen(this->m_pIDisplay);
switch(wParam)
{
case AVK_0:
drawString(m_pIDisplay, "KEY 0", 50, 50);
break;
case AVK_1:
//drawString(m_pIDisplay, "KEY 1", 50, 50);
circle.cx=50;
circle.cy=50;
circle.r=10;
IGRAPHICS_ClearViewport(pIGraphics);
IGRAPHICS_DrawCircle(pIGraphics,&circle);
IGRAPHICS_Update(pIGraphics);

My guess is you haven't setup your pIGraphics (IGraphics Interface) pointer. Your just using it.

My guess is you haven't setup your pIGraphics (IGraphics Interface) pointer. Your just using it.

thanx a lot friend. I have got the bug. :)

thanx a lot friend. I have got the bug. :)

But how to assign a value to the null pointer.
Is it:
pIGraphics=m_pIGraphics;

But how to assign a value to the null pointer.
Is it:
pIGraphics=m_pIGraphics;

But how to assign a value to the null pointer.
Is it:
pIGraphics=m_pIGraphics

But how to assign a value to the null pointer.
Is it:
pIGraphics=m_pIGraphics

You don't just "Assign a value to the pointer". That'd be like saying "I want to write a game. I shall just throw a random load of numbers together at it and it will just know what i want it to do."
The pointer you require is the devices IGraphics Interface pointer. You have use ISHELL_CreateInstance() to get access to any of the brew interfaces other than IShell or ones "Returned" via other interfaces.

You don't just "Assign a value to the pointer". That'd be like saying "I want to write a game. I shall just throw a random load of numbers together at it and it will just know what i want it to do."
The pointer you require is the devices IGraphics Interface pointer. You have use ISHELL_CreateInstance() to get access to any of the brew interfaces other than IShell or ones "Returned" via other interfaces.

hi!!!!!!!
Please help me to know how to post a problem to Brew forum?
There is no such option provided on the control panel.
Please help me!!!!!!!!!! :(
I mean How to post a new thread???????? :confused:

hi!!!!!!!
Please help me to know how to post a problem to Brew forum?
There is no such option provided on the control panel.
Please help me!!!!!!!!!! :(
I mean How to post a new thread???????? :confused:

There is a button at the top of the each forums page called "New Thread" Try clicking that.

There is a button at the top of the each forums page called "New Thread" Try clicking that.

On every new page I have got these options:
User cp FAQ Member List Calender New Posts Search QUick Links Log Out.
Can u please tell about the location of such option.
Please help me.
Thanks a lot for reply......... :)

On every new page I have got these options:
User cp FAQ Member List Calender New Posts Search QUick Links Log Out.
Can u please tell about the location of such option.
Please help me.
Thanks a lot for reply......... :)

Hi,
In every page, at top-right(second bar from top), you can find "Forum Tools" option. Under this(drop-down menu), u have the option called "Post a New Thread". U can use this to post a new query.
Balu.

Hi,
In every page, at top-right(second bar from top), you can find "Forum Tools" option. Under this(drop-down menu), u have the option called "Post a New Thread". U can use this to post a new query.
Balu.