Crash
-
Hi! When running my application, it suddenly crashes and goes to this line:
m_pBackButton->draw();
. The variablem_pBackButton
's address is: 0x04ea5608. If I set a data break point at this address, the following are the contents: 0x04EA5608 ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþî How to run my application without crash? -
Hi! When running my application, it suddenly crashes and goes to this line:
m_pBackButton->draw();
. The variablem_pBackButton
's address is: 0x04ea5608. If I set a data break point at this address, the following are the contents: 0x04EA5608 ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþî How to run my application without crash? -
Hi! When running my application, it suddenly crashes and goes to this line:
m_pBackButton->draw();
. The variablem_pBackButton
's address is: 0x04ea5608. If I set a data break point at this address, the following are the contents: 0x04EA5608 ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþî How to run my application without crash?Looks like
m_pBackButton
is not initialized.«_Superman_»
I love work. It gives me something to do between weekends. -
Looks like
m_pBackButton
is not initialized.«_Superman_»
I love work. It gives me something to do between weekends.No. I've initialised inside another function like this:
m_pBackButton = pManager->getGUIEnvironment()->addButton(recti(0,400,192,432), m_pCreditsImage, CREDITS_BACK_BUTTON, L"Back");
-
No. I've initialised inside another function like this:
m_pBackButton = pManager->getGUIEnvironment()->addButton(recti(0,400,192,432), m_pCreditsImage, CREDITS_BACK_BUTTON, L"Back");
No information here that I can help you with. I would recommend putting a breakpoint in the
addButton
function and debugging the code. Looks likeaddButton
is failing to return a valid pointer.«_Superman_»
I love work. It gives me something to do between weekends. -
No information here that I can help you with. I would recommend putting a breakpoint in the
addButton
function and debugging the code. Looks likeaddButton
is failing to return a valid pointer.«_Superman_»
I love work. It gives me something to do between weekends.If I hover over
m_pBackButton
during debugging, it has this value :0x0516b488. -
If I hover over
m_pBackButton
during debugging, it has this value :0x0516b488.If you put a breakpoint at
draw()
are you able to step into it?«_Superman_»
I love work. It gives me something to do between weekends. -
If you put a breakpoint at
draw()
are you able to step into it?«_Superman_»
I love work. It gives me something to do between weekends.If I press F10 0r F11, it just goes to the next line not to the
draw()
function definition. -
If I press F10 0r F11, it just goes to the next line not to the
draw()
function definition.Are you debugging the
Release
mode? Otherwise make sure to disable optimization inProject -> Properties -> Configuration Properties -> C/C++ -> Optimization -> Optimization
.«_Superman_»
I love work. It gives me something to do between weekends. -
Are you debugging the
Release
mode? Otherwise make sure to disable optimization inProject -> Properties -> Configuration Properties -> C/C++ -> Optimization -> Optimization
.«_Superman_»
I love work. It gives me something to do between weekends.Did u mean Full optimization i.e /Od? There's no
Optimization
in thisProject -> Properties -> Configuration Properties -> C/C++ -> Optimization ->
If I set this, I got the following error: Command line error D8016 : '/Ox' and '/RTC1' command-line options are incompatible -
Did u mean Full optimization i.e /Od? There's no
Optimization
in thisProject -> Properties -> Configuration Properties -> C/C++ -> Optimization ->
If I set this, I got the following error: Command line error D8016 : '/Ox' and '/RTC1' command-line options are incompatibleI meant optimization should be /Od. If optimization is disabled and you're in debug mode, you should be able to step into the draw function by pressing F11 unless the draw function is in another DLL or library.
«_Superman_»
I love work. It gives me something to do between weekends. -
I meant optimization should be /Od. If optimization is disabled and you're in debug mode, you should be able to step into the draw function by pressing F11 unless the draw function is in another DLL or library.
«_Superman_»
I love work. It gives me something to do between weekends.I'm in debug only. I misunderstood ur prev. post. It's Irrlicht Engine's function. I can't step into this by pressing F11. If I press F11, control moves to the next line. It's a virtual function and is defined in a file called IGUIElement.h like this:
virtual void draw() { if ( isVisible() ) { core::list<IGUIElement\*>::Iterator it = Children.begin(); for (; it != Children.end(); ++it) (\*it)->draw(); } }
-
I'm in debug only. I misunderstood ur prev. post. It's Irrlicht Engine's function. I can't step into this by pressing F11. If I press F11, control moves to the next line. It's a virtual function and is defined in a file called IGUIElement.h like this:
virtual void draw() { if ( isVisible() ) { core::list<IGUIElement\*>::Iterator it = Children.begin(); for (; it != Children.end(); ++it) (\*it)->draw(); } }
Is this the final version? I mean have you overloaded it? You could put a breakpoint inside this function and try to debug.
«_Superman_»
I love work. It gives me something to do between weekends. -
Is this the final version? I mean have you overloaded it? You could put a breakpoint inside this function and try to debug.
«_Superman_»
I love work. It gives me something to do between weekends.Not overloaded. I'm calling it with a derived class's object. All the Buttons and other elements are derived from IGUIElement.
-
Hi! When running my application, it suddenly crashes and goes to this line:
m_pBackButton->draw();
. The variablem_pBackButton
's address is: 0x04ea5608. If I set a data break point at this address, the following are the contents: 0x04EA5608 ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþî How to run my application without crash?T.RATHA KRISHNAN wrote:
When running my application, it suddenly crashes and goes to this line:
You always forget to supply important information while asking a question. A really important information in this case is the exact error message. What does it say exactly ?
Cédric Moonen Software developer
Charting control [v3.0] OpenGL game tutorial in C++ -
Hi! When running my application, it suddenly crashes and goes to this line:
m_pBackButton->draw();
. The variablem_pBackButton
's address is: 0x04ea5608. If I set a data break point at this address, the following are the contents: 0x04EA5608 ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþî How to run my application without crash?Is it possible you've deleted your pointer elsewhere? If so, NULL your pointer every time you delete it, so you can find this bug more easily. Or the function that created the pointer did it badly, and returned a pointer to a stack variable. If so, it might work for a while, until the memory got re-used... The 0x4ea5608 looks like a legitimate pointer value - so it was probably correct, even if only briefly. Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
-
Hi! When running my application, it suddenly crashes and goes to this line:
m_pBackButton->draw();
. The variablem_pBackButton
's address is: 0x04ea5608. If I set a data break point at this address, the following are the contents: 0x04EA5608 ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee fe ee îþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþîþî How to run my application without crash?