www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Tango Regex Access Violation

reply yidabu <yidabu.spam gmail.com> writes:
Tango Regex always got unhandled Access Violation:

        char[] str = "ab";
        auto regex = Regex(".");
        Stdout.formatln("result {}", regex.test(str));



tested with dmd windows 1.031, tango 0.99.7

-- 
yidabu <yidabu.spam 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/
Jul 26 2008
next sibling parent bearophile <bearophileHUGS lycos.com> writes:
yidabu Wrote:
 Tango Regex always got unhandled Access Violation:
 tested with dmd windows 1.031, tango 0.99.7

It may be better to use it with a newer DMD, like 1.033. Bye, bearophile
Jul 27 2008
prev sibling next sibling parent torhu <no spam.invalid> writes:
yidabu wrote:
 Tango Regex always got unhandled Access Violation:
 
         char[] str = "ab";
         auto regex = Regex(".");
         Stdout.formatln("result {}", regex.test(str));
 
 
 
 tested with dmd windows 1.031, tango 0.99.7
 

Could it be related to this? http://www.dsource.org/projects/tango/ticket/956
Jul 27 2008
prev sibling parent yidabu <yidabu.spam gmail.com> writes:
On Sun, 27 Jul 2008 15:30:17 +0200
torhu <no spam.invalid> wrote:

 yidabu wrote:
 Tango Regex always got unhandled Access Violation:
 
         char[] str = "ab";
         auto regex = Regex(".");
         Stdout.formatln("result {}", regex.test(str));
 
 
 
 tested with dmd windows 1.031, tango 0.99.7
 

Could it be related to this? http://www.dsource.org/projects/tango/ticket/956

I'm not sure, I failed to debug this via DDBG. -- yidabu <yidabu.spam 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/
Jul 27 2008