Click here to Skip to main content
15,886,639 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
a)How to calculate the runtime memory usage of my program in vb.net.b)After particular limit it is showing out of memory exception can u explain me why it is showing like that?
Posted
Comments
Sergey Alexandrovich Kryukov 22-Mar-13 1:54am    
It doesn't see to work out this way. What is the purpose of monitoring of the memory usage? If this is to help with problem #2, it makes no sense, as formulated. If you want to resolve the problem of memory exception, you should find out what's going wrong. You can do it, but we cannot, as we cannot access your hard drive. You give us no information.

It cannot be a memory leak (please don't tell me that managed memory leaks are impossible with .NET; they are possible) which you need to eliminate...
—SA

1 solution

a) User a ".NET Memory Profiler". Google for it and you'll find a few.

b) With just the error message and nothing else, it's impossible for anyone to tell you what you're doing wrong.

It's entirely possible the message you're getting has nothing to do with memory at all. But, again, it's impossible to say what the problem is because you haven't given any information on what your code was doing at the time the message was thrown.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900