471,318 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

.Net Exception Question

Does a handled error exception that continuously happens in a running
application consume memory over a period of time?

For example, if I have continuous loop trying to connect to website and I
get exceptions everytime, will these exceptions consume memory over time?

I hope this makes sense.

tia,

David
Jul 21 '05 #1
2 1003

"David Pope" <dp***@nospam.satx.rr.com> wrote in message
news:Og**************@TK2MSFTNGP14.phx.gbl...
Does a handled error exception that continuously happens in a running
application consume memory over a period of time?


Only if there is a bug in .NET causing a memory leak.

According to the specifications, it should not.
Jul 21 '05 #2
CMM
Well, only in the same way that instantiating and releasing any ol' object
would consume memory... and eventually cleaned up the garbage collector. It
shouldn't be a concern.

However, exceptions will slow your loop down... not because of a memory leak
but just because exceptions are slooooowww (for whatever reason that I don't
fully understand). A loop that takes X seconds to run may take many many
magnitudes longer if it throws and catches an exception on each loop around.

"David Pope" wrote:
Does a handled error exception that continuously happens in a running
application consume memory over a period of time?

For example, if I have continuous loop trying to connect to website and I
get exceptions everytime, will these exceptions consume memory over time?

I hope this makes sense.

tia,

David

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Gonçalo Rodrigues | last post: by
10 posts views Thread by tony | last post: by
3 posts views Thread by JohnDeHope3 | last post: by
5 posts views Thread by Bry | last post: by
132 posts views Thread by Zorro | last post: by
5 posts views Thread by Vijay | last post: by
2 posts views Thread by Bob Altman | last post: by
9 posts views Thread by =?Utf-8?B?UmFq?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.