The problem was an unintentional error in the font code I was writing. I made the mistake of equating the font's public parameter with its previously defined private variable, as follows:
[XmlIgnore()] [Description("Font for text.")] [Category("My Parameters")]
public Font TextFont {get {return textFont;} set {TextFont=value;}}
[Browsable(false)] publicstring TextFontSerialize
{get {return NinjaTrader.Gui.Design.SerializableFont.ToString(T extFont);}
set {TextFont=NinjaTrader.Gui.Design.SerializableFont. FromString(value);}}
To be correct, all but the first version of "TextFont" should be "textFont" to differentiate the parameter from the variable. That mistake was enough to lock up NT and make it impossible to re-open. Ultimately, the solution was to delete my default workspace and rename a second workspace with my default workspace's name, then restart NT. That prevented NT from loading a chart with the incorrect code, as it was trying to do on startup and failing.
Obviously the error could have been more easily prevented if I had used less-similar file names. Still, it would be helpful if NT's compiler put up an exception for this type of programming mistake.
Otherwise, NT7 is working great. I hope this helps,
Light

Comment