From: Joe P. <joe...@sn...> - 2001-05-04 02:51:57
|
On Thursday 03 May 2001 04:11 am, Alexander Zimmermann wrote: <...> > RH 7.1 includes qt-2.3.0 and XFree86-4.0.3 . > The crash happens in the call to XojPanel::createLCD . lcdPixmap and > pm are both NULL pointers after new QPixmap . Therefore the program > core dumpes in the line > > *lcdPixmap = (QPixmap)hpojlcd_xpm; > > hpojlcd_xpm is defined, but lcdPixmap is NULL. Don't ask me why. > > Unfortunately I'm not familiar with qt, but if you want me to test some > things I'm willing to help. Thanks, Alexander. I attached a patch that I hope will fix the trouble. The patch also has some other changes in it. It's meant to be applied against the latest ojstatus.cpp from CVS. I don't know exactly what is causing the problem, but it seems likely that the method I was using to initialize the QPixmap objects does not work on your system. Maybe the new way will work better. We both have installed the same gcc and qt versions, so the error may be appearing due to differences in versions of XFree86 or maybe glibc. If you become interested in learning Qt programming, the qt docs are a big help. Qt is actually easy to learn and use, if you have a good understanding of pointers and classes. -- Joe |