Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Ideas About UML

<< < (2/3) > >>

jmccay:
I got it to compile fine, and it sort of runs.  I can add a new class in the pad, but if I try to edit the new class I get an unhandled exception.  Anyone try this program out?  I had the same problem with the precompiled version.

jmccay

stahta01:
I am trying UML Pad right now.

I have created a new class and do not have it Crash.

What are you editing on the Class, I have changed its name with no problem.

Tim S

jmccay:
I have been running this in debug mode.  I figured what happened.  This is how I got it to crash.

Opened UMLPad.
Click on the class icon (green).
I added a class to the current pad.
I doubled clicked on the class, and it crashed.

   The problem is that there is nothing in the Diagrams tree.  This is where the problem occurs.  I never actually added a new class diagram.  I just started building one.  The problem line is:

(wxUmlClassDlg.cpp line 77 {or 76  I have edited this file})
   readOnly= dynamic_cast<umlMainWindow*>(GetParent())->GetCurrDiag()->IsReadOnly();

Since there is no item in the tree, GetCurrDiag, or GetParent, returns NULL.  I am too tired to remember which one.  If you do a File->New->Class Diagram and actually add something, then you don't get a crash.  If you don't do that, then it crashes because the NULL pointer is not handled properly.  Also it points out a possible design flaw.  I thought it automatically had 1 class diagram.

jmccay

jmccay:
I think the initial state of UML Pad is flawed.  On further testing, you need to save the class diagram (that is there when it initially starts) before you can edit the class information.  This is odd behavior.  I think that if you can edit from the start there should be an item in the tree.  Otherwise the toolbar should be disabled until something is added.

jmccay

stahta01:
Yea, that explains the UML Pad, I always openned up the example Class and then Added a new class to it.

I stopped looking at the program when I decided that adding UNICODE to it was beyond my experience level at this time. Also, I did not wish to use it enough to spend the time learning the code.

Tim S

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version