Click here to Skip to main content
15,902,636 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Question.NET from a management / architecture view Pin
eyuzwa26-Jan-06 11:05
eyuzwa26-Jan-06 11:05 
Questionimport CSV data into variables Pin
besomuk26-Jan-06 4:40
besomuk26-Jan-06 4:40 
AnswerRe: import CSV data into variables Pin
User 665827-Jan-06 7:50
User 665827-Jan-06 7:50 
GeneralRe: import CSV data into variables Pin
besomuk28-Jan-06 23:40
besomuk28-Jan-06 23:40 
QuestionDelete files when uninstalling application Pin
sebastud26-Jan-06 2:09
sebastud26-Jan-06 2:09 
Question.NET Memory Management Pin
RajeshGuptha26-Jan-06 2:01
RajeshGuptha26-Jan-06 2:01 
AnswerRe: .NET Memory Management Pin
Colin Angus Mackay26-Jan-06 2:23
Colin Angus Mackay26-Jan-06 2:23 
AnswerRe: .NET Memory Management Pin
Dave Kreskowiak26-Jan-06 6:24
mveDave Kreskowiak26-Jan-06 6:24 
Colin is correct. If you use any GDI or GDI+ objects, especially when doing you own custom drawing, and don't properly release them by calling Dispose when your done with them, the unmanaged underlying system handles don't get released and are eventually exhausted, causing your OutOfMemory Exception.

There are other things that will cause this too, but not properly Disposing the objects you're using, no matter what they are, will result in exhausting one or more of the system handle pools.

If you want a quick check of this, open TaskManager, click on its Processes tab, then go to the view menu and pick Select Columns. Turn on Handles, Threads, USER Objects, and GDI Objects. Click OK, then go to the list and file your app. Watch it run for a little while. If any of these counters just keeps rising the longer you use your app, this gives you a hint of where the problem lies.

Handle counts usually don't rise above 1,000 in most cases. I have seen examples of piss-poor programming (in commercial software, no less!) where the Handle count grew above 100,000 handles in use! This is a REALLY BIG clue there's leaky code somewhere in that app...


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

QuestionUnmanaged Class Serialization in VC .NET Pin
cxxxc26-Jan-06 1:06
cxxxc26-Jan-06 1:06 
QuestionScheduling Task Pin
azam31625-Jan-06 21:30
azam31625-Jan-06 21:30 
Question.NET & firefox Pin
Emily.r25-Jan-06 6:19
Emily.r25-Jan-06 6:19 
AnswerRe: .NET & firefox Pin
Matthew Hazlett25-Jan-06 14:34
Matthew Hazlett25-Jan-06 14:34 
QuestionWorkaround for Raw sockets in Windows XP SP2? Pin
Tom Paluzzi25-Jan-06 4:52
Tom Paluzzi25-Jan-06 4:52 
QuestionCan C++ be used to create a powerful web app? Pin
larryfran24-Jan-06 19:24
larryfran24-Jan-06 19:24 
AnswerRe: Can C++ be used to create a powerful web app? Pin
James Gupta25-Jan-06 1:38
professionalJames Gupta25-Jan-06 1:38 
AnswerRe: Can C++ be used to create a powerful web app? Pin
Dave Kreskowiak25-Jan-06 1:53
mveDave Kreskowiak25-Jan-06 1:53 
AnswerRe: Can C++ be used to create a powerful web app? Pin
Kevin McFarlane26-Jan-06 6:52
Kevin McFarlane26-Jan-06 6:52 
QuestionHow to import C# structs into MC++ without loss of inheritance connectivity Pin
chervu24-Jan-06 10:45
chervu24-Jan-06 10:45 
QuestionFilling a ListView is too slow. Pin
luke72724-Jan-06 6:42
luke72724-Jan-06 6:42 
AnswerRe: Filling a ListView is too slow. Pin
Ray Cassick24-Jan-06 7:14
Ray Cassick24-Jan-06 7:14 
GeneralRe: Filling a ListView is too slow. Pin
luke72724-Jan-06 9:04
luke72724-Jan-06 9:04 
AnswerRe: Filling a ListView is too slow. Pin
Daniel Grunwald24-Jan-06 8:48
Daniel Grunwald24-Jan-06 8:48 
GeneralRe: Filling a ListView is too slow. Pin
luke72724-Jan-06 9:14
luke72724-Jan-06 9:14 
AnswerRe: Filling a ListView is too slow. Pin
luke72724-Jan-06 21:04
luke72724-Jan-06 21:04 
GeneralRe: Filling a ListView is too slow. Pin
Daniel Grunwald25-Jan-06 4:16
Daniel Grunwald25-Jan-06 4:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.