Reply To: corrupted file or broken load routine

I encountered a problem which leads to SIM not being able to load my file anymore. I was adding two sequence diagrams and a state diagram. While doing that nothing special happened. Saving worked just fine. But after closing SIM I cannot reopen my file anymore. When invoking SIM with the file as a parameter I get the following exception:


System.InvalidCastException: Cannot cast from source type to destination type.

at SoftwareIdeasModeler.Core.DiagramItems.UmlObjects.ConcreteUmlSequenceAction.UpdateBounds () [0x00000]

at SoftwareIdeasModeler.Core.DiagramItems.UmlObjects.ConcreteUmlSequenceAction.BindToEntities (SoftwareIdeasModeler.Core.Projecting.Diagram diagram) [0x00000]

at SoftwareIdeasModeler.Core.Projecting.Project.BindEntities () [0x00000]

at SoftwareIdeasModeler.ProjectXml.SimXmlReader.Load () [0x00000]

at SoftwareIdeasModeler.Program.RunMainWindow (System.Windows.Forms.Form splash) [0x00000]


Clicking on "continue" results in closing the application.

When using the File->Open I get the same Exception just at SoftwareIdeasModeler.ProjectHelper.OpenProject (SoftwareIdeasModeler.MainForm mainForm, System.String filename) [0x00000] instead of SoftwareIdeasModeler.Program.RunMainWindow (System.Windows.Forms.Form splash) [0x00000].

Fortunately, I have versioned my diagrams, so only two diagrams are lost. As I said, I first encountered no problems. I even did two commits with the broken file.



R2C2 2 May 2011 12:37:44

New Comment

You can use these formatting tags: [b]bold[/b] [i]italic[/i] [u]underline[/u] [url][/url] [code]some code[/code] [quote]quoted text[/quote] [list]one list item per line[/list]