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