When I run a save file dialog like below, the drop down box of the file type shows erroneous characters, sometimes on many entries.
Rhino.UI.SaveFileDialog d = new Rhino.UI.SaveFileDialog();
d.Filter = "Hydrostatics Report (.lis)|*.lis";
But, if I append a pipe symbol | to the end of the filter, this does not happen. I’m guessing here, but it seems that the system uses C-style string scanning, does not find the final | and keeps going in a buffer overrrun?
Rhino.UI.SaveFileDialog d = new Rhino.UI.SaveFileDialog();
d.Filter = "Hydrostatics Report (.lis)|*.lis|"; // this works, but is not a valid Filter string according to MSDN and does not work in the winforms SaveDialog
I’m not sure where the ‘standard convention’ you mention is defined, but it would be nice if you followed the MSDN SaveFileDialog convention (see http://msdn.microsoft.com/en-us/library/system.windows.controls.savefiledialog.filter(v=vs.95).aspx), which does not use a double pipe terminator. If I use such a double pipe terminator on a winforms SaveFileDialog, the result looks like this, with an additional, emtpy, file type.