Program Error upon "Generate Source" (#27)

Upon selecting "Generate Source" and sending to PHP, program created files but gave the following error:

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Documents and Settings\Tyler\Desktop\Apollo\Test\ClientInteractsW\View.php'.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)

at System.IO.StreamWriter.CreateFile(String path, Boolean append)

at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)

at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)

at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)

at SoftwareIdeasModeler.Core.Generation.Templates.TemplateProcessor.ProcessAbstractElement(TemplateFileItem templateFile, TemplateFileProcessor ftProcessor, AbstractDiagramItem item)

at SoftwareIdeasModeler.Core.Generation.Templates.TemplateProcessor.ProcessAbstractElements(TemplateFileItem templateFile, TemplateFileProcessor ftProcessor)

at SoftwareIdeasModeler.Core.Generation.Templates.TemplateProcessor.Process()

at SoftwareIdeasModeler.Dialogs.Generating.SourceCode.SettingsForm.Generate()

at SoftwareIdeasModeler.Dialogs.Generating.SourceCode.SettingsForm.generateButton_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.OnMouseUp(MouseEventArgs mevent)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ButtonBase.WndProc(Message& m)

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)

11 March 2012 17:31:03
18 March 2012 18:32:42
Requested by
Windows XP Professional SP3
Solved in

Dusan Rodina - 12 March 2012 15:50:19

Does the program crash also when the output directory exists? When I tested this case, I could reproduce it only if the output directory doesn't exist. Anyway I will add the check for directory existence to the program in the next release.

Tyler 12 March 2012 23:37:16

Program did not crash and directory did exist. All I had done was "Generate Source" to PHP. I have no idea what happened beyond that.



Your Name:
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]