System.OutOfMemory Exception

T

Tobias Matzat

Hello!

I'm writing an application that immitates ie behavior to save
html-pages. Well fecht the files in the webpage and change the paths in
the href/src attributes. Well, I#m doing this with the help of the RegEx
class. If the page contains a lot of files to fetch, I'm getting an
System.OutOfMemory Exception when changing something with the
RegEx.Replace(...). Taking a look in my taskmanager shows me that all
off my system memory is full. Oh oh. But why - consumes the
RegEx.Replace() so much memory? Is there a way to 'controll' it??

THX!
Tobias
 
K

Kevin Spencer

It is quite possible to write a Regular Expression that finds an infinite
number of matches. I would suggest taking a good look at your Regular
Expression first.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top