In my latest app removing the RegexOptions.Compiled from my regular expression seems to avoid the 99% and having my app never start problem.

I tried to make a small app to demonstrate the behavior but it doesn't seem to want to reproduce it self in small app form.

I changed:
regex = new Regex(regstr,RegexOptions.Compiled);
regex = new Regex(regstr);


  • Thank you for your post. Unfortunately, I can't repoduce it either. I suspect your problem had something to do with how we instrument the compiled code.

    Microsoft changed the behaviour of compiled Regexs between .NET 1.1 and 2.0. Which version are you using?
    Jason Crease
    Red Gate Software
  • I've tried to repoduce the problem without success I'm afraid. If you can make a small app that demonstrates this crash I'm sure we'd happily give you some goodies.
    Jason Crease
    Red Gate Software
Sign In or Register to comment.