S
Saira
Hello al
I am not sure where to post this, so I hope this is correct.
We have written a Visual Studio AddIn that relies heavily on regular
expressions, which are often executed thousands of times. When running, it
works successfully for a while, but the Windows Page File Usage gradually
increases, and eventually the application freezes. We have traced the
problem to the regular expressions, but the problem does not apply equally
to all expressions. For example, the expression "^([\s]*)('|REM(
|\t|\v))([\s\S]*)$" does not cause any problems, whereas the expression
"^((("(("")|[^"])*")|([\s\S]*?))*)(('([\s\S]*))|$)$" causes a severe memory
leak. We always execute the expressions in 'interpreted' mode. Is there a
problem with certain expression constructs?
Thanks for any help/tips
Saira
I am not sure where to post this, so I hope this is correct.
We have written a Visual Studio AddIn that relies heavily on regular
expressions, which are often executed thousands of times. When running, it
works successfully for a while, but the Windows Page File Usage gradually
increases, and eventually the application freezes. We have traced the
problem to the regular expressions, but the problem does not apply equally
to all expressions. For example, the expression "^([\s]*)('|REM(
|\t|\v))([\s\S]*)$" does not cause any problems, whereas the expression
"^((("(("")|[^"])*")|([\s\S]*?))*)(('([\s\S]*))|$)$" causes a severe memory
leak. We always execute the expressions in 'interpreted' mode. Is there a
problem with certain expression constructs?
Thanks for any help/tips
Saira