Hi, when calling this:
the program crahes without a reason. im sure the tmp has a " "Qt Code:
std::string final = tmp.substr(tmp.find(" "), tmp.length());To copy to clipboard, switch view to plain text mode
PS:
when i debug i get seg fault
Hi, when calling this:
the program crahes without a reason. im sure the tmp has a " "Qt Code:
std::string final = tmp.substr(tmp.find(" "), tmp.length());To copy to clipboard, switch view to plain text mode
PS:
when i debug i get seg fault
Last edited by Fallen_; 17th September 2010 at 05:30.
Possible problems:
tabs = 0
m_chan = 0
if socket is a pointer, it can be 0 too.
So, do a check on all pointers, or check your backtrace to find which pointer is 0
already did, nothing wrong
Post your backtrace.
Did you mean this?:
Signal name: SIGSEGV
Signal meaning: Segmentation fault
if not:
http://pastebin.com/R5uubZPf
---The text that you have entered is too long (46227 characters). Please shorten it to 10000 characters long.
anything else?
No, that is the compiled code of a QWidget::setParent function.
But it might get us closer to the error.
If your program fails in this function, you're creating a widget with a non valid parent.
I guess Channel is a widget?
And the first argument in the constructor is the parent?
Does "this" exist?
Channel is a widget yes, and "this" exist while calling it and yes the first arguemnt is QWidget
I would love to see the backtrace.
What system are you using? Window, Linux, MacOs, ... ?
What IDE are you using? Qt Creator, ... ?
Windows, Qt creator (to debug), and Qt Command Line to compile. how do i get the backtrace?
In Qt Creator, in stead of running the program normally, run the program in the debugger.
When it crashes, go to the stack view (should be the list on the left I think), it should contain the backtrace.
nope, cant see anything
Bookmarks