I was able to resolve the segmentation faults, but now get the following messages while running
Object::connect: No such slot Mainwindow::displayinfo(node) in entrytree2.cpp:167...
Type: Posts; User: Nishant Bhaskar
I was able to resolve the segmentation faults, but now get the following messages while running
Object::connect: No such slot Mainwindow::displayinfo(node) in entrytree2.cpp:167...
I was able to resolve the previous error. However now I see a different error
#1 0xb7242b94 in std::string::operator= (this=0x0, __str=@0xbfffe704) at...
@iMalc, I agree with you. But the file (I have mentioned the contents in the first post of the thread) does contain spaces. So I'm unable to understand why the loop is not exiting.
I restructured the main to look like :
int main(int argc, char *argv[])
{
size_t spaces=0;
size_t nextspaces=0;
size_t pos=0;
string temp;
string temp2;
pos = 20604
temp={static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xb7295f84 ""}}
@tabstop, thanks for the last hint, it did work................now on debugging I'm getting :
#0 0x0804c58d in main (argc=1, argv=0xbfffe7d4) at entrytree2.cpp:263
263 ...
@tabstop, thanks for the last hint, it did work................now on debugging I'm getting :
#0 0x0804c58d in main (argc=1, argv=0xbfffe7d4) at entrytree2.cpp:263
263 ...
@tabstop...........this is the first time I'm working with gc++ compiler, so I'm unable to get understand working with switches. Can you please elaborate ??
@tabstop..................I am generating the makefile using qmake.............how should I apply the -g switch ?
I have written a code for creation of a dialog that will display the contents of a tree stored in memory. The tree is created by reading data from a file.
#include <iostream>
#include...