dwt-win Path bug with tango 0.99.7
yidabu
yidabu.spam at gmail.com
Wed Jul 30 20:01:27 PDT 2008
On Thu, 31 Jul 2008 10:27:38 +0800
yidabu <yidabu.spam at gmail.com> wrote:
>
> theres is Break change in tango 0.99.7L
> Backslashes ( \ ) are no longer accepted as in FilePath and PathParser - use Path.standard before passing paths to them.
>
> for example,
> dwtx.jface.preference.DirectoryFieldEditor
>
> line 59:
> auto f = new FilePath(getTextControl().getText());
> sholud be:
> auto f = new FilePath(Path.standard(getTextControl().getText()));
>
> otherwise, fileDialog.setFilterPath(startingDirectory.path); will failure.
>
> all modules imported FilePath or Path should do a check, my program crashed:
> Exception occurred
> Exception of type tango.core.Exception.IOException in (0): unexpected '\' character in path: C:\Documents and Settings\Administrator\Application Data\Software
>
> I haven't found the issue this time.
modules that import FilePath:
D:/d/dmd/src/dwt-addons/dwtx/jface/preference/DirectoryFieldEditor.d
D:/d/dmd/src/dwt-addons/dwtx/jface/preference/FileFieldEditor.d
D:/d/dmd/src/dwt-addons/dwtx/jface/preference/PathEditor.d
D:/d/dmd/src/dwt-win/dwt/dwthelper/File.d
--
yidabu <yidabu.spam at gmail.com>
http://www.dsource.org/projects/dwin
D 语言-中文(D Chinese):
http://www.d-programming-language-china.org/
http://bbs.d-programming-language-china.org/
http://dwin.d-programming-language-china.org/
http://scite4d.d-programming-language-china.org/
More information about the Digitalmars-d-dwt
mailing list