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?
Printable View
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?
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.
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