[Bug 59870] New: Code a class with members. Then delete some members. The Class Pane is not updated.

Jason D ultrasaiyan at hotmail.com
Mon Jun 16 04:43:05 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=59870     
           Summary: Code a class with members.  Then delete some members.
                    The Class Pane is not updated.
           Product: kdevelop
           Version: 2.1.5
          Platform: RedHat RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel at kdevelop.org
        ReportedBy: ultrasaiyan at hotmail.com


Version:           2.1.5 (using KDE KDE 3.1.1)
Installed from:    RedHat RPMs
Compiler:          GCC 3.2.2-5 
OS:          Linux

I coded a publicly available class, and within this class I made a private struct with two members.

BEGIN CODE SNIPPET

 class queue
 {
    private:

       node *_out;      //node to dequeue
       node *_in;       //node to add an item at

       int _nodecount;
       ~queue();        //destructor, no args

       class node
       {
          public:
             int data;
             node *nextnode;
             node(int);

          private:
             ~node();
       };
          

    public:
       queue();         //constructor, no args
       
       int top();       //look at the top value
       int dequeue();      //dequeue a value
       void enqueue(int);     //enqueue a value
       int count();        //how many items do we have
 };

END CODE SNIPPET

The Class View pane updates properly.  Change the argument to the node constructor to nothing (delete the int).  The ClassView pane does not reflect the change at all.  Now, move the CLASS NODE outside of the QUEUE class.  The ClassView pane reflects the new location of the node class, but the old location hasn't been removed!  Try right clicking the incorrect node class in the tree...select ADD SIGNAL...  CRASH!

Saving my files doesn't not force the pane to update.  

(no debugging symbols found)...[New Thread 1096819456 (LWP 4377)]
0xffffe002 in ?? ()
#0  0xffffe002 in ?? ()
#1  0x40a7357d in KCrash::defaultCrashHandler(int) ()
   from /usr/lib/libkdecore.so.4
#2  <signal handler called>
#3  0x41137dd2 in QString::latin1() const ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#4  0x41137eda in QString::ascii() const ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#5  0x0819e358 in CClassView::slotSignalNew() ()
#6  0x081a00e4 in CClassView::qt_invoke(int, QUObject*) ()
#7  0x40eb70c9 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#8  0x41196452 in QSignal::signal(QVariant const&) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#9  0x40ed1158 in QSignal::activate() () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#10 0x40fa397d in QPopupMenu::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#11 0x40eeb00c in QWidget::event(QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#12 0x40e58f24 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#13 0x40e58753 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#14 0x40a071e9 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libkdecore.so.4
#15 0x40dfed7d in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#16 0x40dfccdf in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#17 0x40e11bda in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#18 0x40e6ccf6 in QEventLoop::enterLoop() ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#19 0x40e6cb98 in QEventLoop::exec() () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#20 0x40e59151 in QApplication::exec() ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#21 0x0811367c in main ()
#22 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6

I dont know how to retrieve the list of loaded plugins.  I'm using the default installation that came with Red Hat 9, if that helps.




More information about the KDevelop-devel mailing list