>>>>> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

Now, I know what happens, but I do not know why. I fear this may be a
compiler bug, and anyworkaround would be welcome. Basically the
problem is in 

QWorkArea::QWorkArea(int, int, int, int)
        : WorkArea(), QWidget(qApp->mainWidget()), painter_(*this)
{
        scrollbar_ = new QScrollBar(QScrollBar::Vertical, this);
        content_ = new QContentPane(this);
[...]

gdb says:

(gdb) p scrollbar_ 
$1 = (QScrollBar *) 0xf

which is obviously bogus. Then in QContentPane constructor, the code
tries to access *(wa_->scrollbar_) and dies.

I tried to recompile QWorkArea.C with no optimization, but it did not
help. 

Any ideas? The compiler is gcc-2.95.2 on redhat 7.1 (strange but
true).

JMarc

Reply via email to