2
Vote

Cannot generate project more than once

description

If there is a problem generating the project you cannot press "Convert" again to regenerate, the error message is something like "Cannot delete project file, it is already open by another process". Closing the app, reopening and re-selecting the project lets the generated project file be deleted.

comments

JamesKhoury wrote Jan 31, 2013 at 4:51 AM

This is because the FileStreams are not in "using(){ ... }" style blocks. The files are staying open.
using (StreamReader file = new System.IO.StreamReader(fn))
{
    ...
}

wrote Feb 14, 2013 at 6:40 PM