Bug 59870 - Code a class with members. Then delete some members. The Class Pane is not updated.
Summary: Code a class with members. Then delete some members. The Class Pane is not ...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 2.1.5
Platform: RedHat Enterprise Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-16 04:42 UTC by Jason D
Modified: 2003-06-17 13:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason D 2003-06-16 04:42:46 UTC
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.
Comment 1 Jason D 2003-06-16 04:44:09 UTC
Erm, noticed at the beginning i said "struct with two members".  Just look at
the code.  That was a brain-fart on my part.
Comment 2 Amilcar do Carmo Lucas 2003-06-17 13:49:19 UTC
KDevelop 2.x is no longer under development. 
 
You are strongly advised to update to the latest CVS version of KDevelop3 code 
name gideon, take a look at: 
http://www.kdevelop.org/index.html?filename=branches_compiling.html 
for all the details you need. If you find a problem or need help please send a 
mail to the mailing list: 
http://www.kdevelop.org/index.html?filename=mailinglist.html 
or drop us a line at the channel #kdevelop on the server irc.kde.org using 
ksirc, for example. 
Please use the CVS version and compile it yourself because that you you can 
easily patch it if a bug is found. 
 
KDevelop3 can import KDevelop2 projects. 
You can have and run KDevelop3 and KDevelop2 at the same time on the same 
computer without any problems. 
So migrating is a breeze. :) 
 
Closing. Please feel free to reopen if the bug presists in KDevelop3