Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, February 2007
Urgent: getting segmentation problem QWidget::show() in linux


Message 1 in thread

Hi,
 I am getting segmentation problem.

 object1->show();
 object2->show();

object1 contains a QTable class and object2 contains normal
lineedits.whenuser presses a particuler button I have to open new
window.
I am sure i allocated memory for object1 and 2 because isVisible() working
fine with out any problem.

I able to open new window for object2 but for the same code to open new
windowfor object1 i am getting problem.

regrds,
venu.

Message 2 in thread

Hi,

>  I am getting segmentation problem.

Use a debugger and investigate the cause of the segmentation fault.

>  object1->show();
>  object2->show();
>  
> object1 contains a QTable class and object2 contains normal 
> lineedits.when user presses a particuler button I have to open new window.
> I am sure i allocated memory for object1 and 2 because isVisible() 
> working fine with out any problem.

It's hard to tell without seeing some code.

> I able to open new window for object2 but for the same code to open new 
> windowfor object1 i am getting problem.

Then the error is probably in the code of the class of "object1".

--
 [ signature omitted ]