|
-
Apr 8th, 2011, 09:17 AM
#1
Thread Starter
Hyperactive Member
Imported unused classes
In order to solve asp.net app memory leaking problem (as IIS admin told me), I double checked my asp.net app code.
I found out that some classes are imported but never used.
Does it cause memory leaking?
-
Apr 8th, 2011, 04:37 PM
#2
Re: Imported unused classes
Do you mean the 'Imports' statements?
These would never cause memory leaks - they are just to allow you to refer to types without full qualification and are resolved before compiling.
-
Apr 9th, 2011, 07:59 AM
#3
Re: Imported unused classes
Hello,
To be clear, you don't Import classes, you Import a reference to an assembly which contains classes.
The answer to your question is no, an Import of an assembly will not by itself cause memory leaks. There are a number of profiler which you can run on your code though to see if you have any issues.
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|