Hi Guys, i have a potential problem with my code. i am allocating memeoy for a variable, see statement below SXT_CHAR* newNsBuf = new(std::nothrow) SXT_CHAR[newSize]; where SXT_CHAR is nothing but a typedef of char. at some instance i am getting a segmentation fault at this line. the GDB of the core file is shown below. #0 0x42074032 in _int_malloc () from /lib/tls/libc.so.6 #1 0x4207335b in malloc () from /lib/tls/libc.so.6 #2 0x080fb98b in operator new(unsigned, std::nothrow_t const&) () #3 0x080fbbb4 in operator new[](unsigned, std::nothrow_t const&) () #4 0x080a6292 in xpp::XmlPullParser::setInput(char const*, int) (..............) at XmlPullParser.cpp:87 the 87th line is the line which i have shown above can anyone please help me. Regards Arun ___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com