Menu

#13 Brackets in Use Case name cause exception.

open
nobody
None
5
2017-01-03
2008-08-19
Snakemeat
No

Description: Creating a name with brackets ("[", "]") for a use case, causes exceptions when trying to rename. Exceptions continue when the model is closed and a new one is open.

Steps to reproduce:
1) Create a use case with the name "[PCB-1] Add Log"
2) Double Click on the case to open the details window
3) Click on the "General" tab
4) Click "Change" button next to the use case name
5) Enter a new name, "Add Log"

Exception:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: parsing ""\b[PCB-1] Add Log\b"" - [x-y] range in reverse order.
at System.Text.RegularExpressions.RegexParser.ScanCharClass(Boolean caseInsensitive, Boolean scanOnly)
at System.Text.RegularExpressions.RegexParser.ScanRegex()
at System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op)
at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache)
at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options)
at UseCaseMakerLibrary.Package.ChangeReferences(String oldName, String oldNameStartTag, String oldNameEndTag, String newName, String newNameStartTag, String newNameEndTag, Boolean deep)
at UseCaseMakerLibrary.Model.ReplaceElementName(String oldName, String oldNameStartTag, String oldNameEndTag, String newName, String newNameStartTag, String newNameEndTag)
at UseCaseMaker.frmMain.ElementNameChange(IdentificableObject ia)
at UseCaseMaker.frmMain.ElementNameChange(Label oldNameLabel)
at UseCaseMaker.frmTabView.btnUCNameChange_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
UseCaseMaker
Assembly Version: 2.0.0.1
Win32 Version: 2.0.0.1
CodeBase: file:///C:/Program%20Files/UseCaseMaker2/UseCaseMaker.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
UseCaseMakerControls
Assembly Version: 2.0.0.1
Win32 Version: 2.0.0.1
CodeBase: file:///C:/Program%20Files/UseCaseMaker2/UseCaseMakerControls.DLL
----------------------------------------
WeifenLuo.WinFormsUI.Docking
Assembly Version: 2.1.2706.19617
Win32 Version: 2.1.0.0
CodeBase: file:///C:/Program%20Files/UseCaseMaker2/WeifenLuo.WinFormsUI.Docking.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
xwjgsudo
Assembly Version: 2.0.0.1
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
UseCaseMakerLibrary
Assembly Version: 2.0.0.1
Win32 Version: 2.0.0.1
CodeBase: file:///C:/Program%20Files/UseCaseMaker2/UseCaseMakerLibrary.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Discussion

  • Snakemeat

    Snakemeat - 2008-08-19

    Brief error message

     
  • David Podhola

    David Podhola - 2017-01-03
    Post awaiting moderation.

Log in to post a comment.