Forum Navigation
Regex: run-time error: object.Exception: Access Violation (while not using -g flag)
Forum Index
»
Tango Issues
»
Regex: run-time error: object.Exception: Access Violation (while not using -g flag)
Moderators:
kris
Posted: 01/06/09 11:49:40hey, Im new to d and tango, I was playing arround with it when I stopped with a run-time error "object.Exception: Access Violation". I was trying the example at tango.text.Regex from the API, here goes:
foreach(m; Regex("ab").search("qwerabcabcababqwer") Stdout.formatln("{}[{}]{}", m.pre, m.match(0), m.post);
Tried whatever I could to make it working. I joined #d.tango @ irc asking for help and "larsivi" told me that it runs correctly for him under linux.
Finally, after some tests I realized that when compiling with -g flag everything runs correctly. "dmd -g file.d"
I'm under vista 32 bits.
Greetings, TA