dwt-win Path bug with tango 0.99.7

yidabu yidabu.spam at gmail.com
Wed Jul 30 19:27:38 PDT 2008


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.


-- 
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