Hi,
Here is the code
bool A::clear(void) {
if (m_active) {
return val;
} else {
return true;
}
} // end A::clear
bool A::initialize(void) {
if (m_active) {
return clear();
} else {
return true;
}
} // end A::initialize
getting the below segmenation fault as soon as it enters executing the clear() function
Incurred fault #6, FLTBOUNDS %pc = 0xFFFFFD7FFDE049C4
/1: siginfo: SIGSEGV SEGV_MAPERR addr=0x1FDE73940
/1: Received signal #11, SIGSEGV [caught]
/1: siginfo: SIGSEGV SEGV_MAPERR addr=0x1FDE73940
If initialize() directly returns the val, without caling the clear(), it works.
Can some help me on this
-Champa Ananad