read uninitialized (rui)
Hello,
I currenlty try to clean my code of rui/wui etc...
First thing I am wondering of: is the rui output in the sunstudio debuger always reliable ?
Or could it be theat I some times does not check that a variable has being initialized indirectly ?
currently I receive this complaint :
Read from uninitialized (rui) on thread 1:
Attempting to read 3 bytes at address 0xffbee799
which is 289 bytes above the current stack pointer
Location of error: IBAG_iniparser.cpp, line 0, std::istreambuf_iterator<char,std::char_traits><char> >::istreambuf_iterator()
[code]
typedef std::istreambuf_iterator<char> IsbIt;
.
.
.
class StreamToString
{
IsbIt p;
IsbIt end;
public:
StreamToString(std::istream &is ) : p(is), end(IsbIt()), iss(is)// the rui comes out here. My guess is end(IsbIt()) causes it.
{}
}
The caller passes an ifsream to the overloaded constructor.
since the rui comes out of istreambuf_iterator<char, std::char_traits><char> >::istreambuf_iterator(0xffbee954, 0xffbee794, 0xffbee9e8, 0x78, 0x0, 0x1) i cannot step onto this function.
Any Idea why this could be a rui ?
regards
fagery
[/code]

