...Strange Problem...
- From: "Franco" <serpicus74@xxxxxxxx>
- Date: Fri, 22 Dec 2006 10:50:28 +0100
I've the following problem with my arm9:
insede myclass, two methods:
int funcB() //private
{
int ret;
// do something setting ret
cout<<"debug1"<<endl;
return ret;
}
int funcA() //pubblic
{
int ret;
//...
ret=funcB();
cout<<"debug2"<<endl;
//...
return ret;
}
From main:....
ret=myclass.funcA();
....
When I start program assuming, inside funcB(), ret=0:
debug1
debug2
When I start program assuming, inside funcB(), ret=1:
debug1
debug2
if during the same execution I change status of ret inside funcB(), from 1
to 0, I can see:
debug1
debug2
if during the another execution I change status of ret inside funcB(), from
0 to 1, I can see:
debug1
Segmentation fault
!!!! Why ????
My working conditions: freescale arm9 mxL, 16Mb flash, 16Mb sdram
Thanks and MerryChristmas
.
- Follow-Ups:
- Re: ...Strange Problem...
- From: Helix
- Re: ...Strange Problem...
- Prev by Date: kernel how to know the module used by another ?
- Next by Date: Let you own your own multimedia embedded products ASAP.
- Previous by thread: kernel how to know the module used by another ?
- Next by thread: Re: ...Strange Problem...
- Index(es):
Relevant Pages
|