Click here to Skip to main content
15,920,896 members
Home / Discussions / C#
   

C#

 
GeneralApplicationException VS Exception Pin
Gimpy198319-Jul-04 5:00
Gimpy198319-Jul-04 5:00 
GeneralRe: ApplicationException VS Exception Pin
Heath Stewart19-Jul-04 5:30
protectorHeath Stewart19-Jul-04 5:30 
GeneralCalled but not executed :confused: Pin
Gimpy198319-Jul-04 4:54
Gimpy198319-Jul-04 4:54 
GeneralRe: Called but not executed :confused: Pin
Heath Stewart19-Jul-04 5:35
protectorHeath Stewart19-Jul-04 5:35 
GeneralRe: Called but not executed :confused: Pin
Gimpy198319-Jul-04 9:27
Gimpy198319-Jul-04 9:27 
GeneralRe: Called but not executed :confused: Pin
Heath Stewart19-Jul-04 9:32
protectorHeath Stewart19-Jul-04 9:32 
GeneralGoing Unmanaged doesn't free Memory Pin
Guilio karadanais19-Jul-04 4:24
Guilio karadanais19-Jul-04 4:24 
GeneralRe: Going Unmanaged doesn't free Memory Pin
Heath Stewart19-Jul-04 4:37
protectorHeath Stewart19-Jul-04 4:37 
nEgAtIvE cReEp wrote:
if I call GC.Collect() it clears the memory and brings it back down but this is oviously not a good idea

That should be your clue right there. Unmanaged resources are called "unmanaged" because they are not managed by the GC. If you call GC.Collect and it makes a difference, then unmanaged reosurces are not your problem.

The problem here is that you must dispose those images you're creating (the image) variable. When finished (and be re-assigning image to something else), call image.Dispose(); otherwise, the Image is not cleaned-up until the GC gets around to it or you call GC.Collect.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Going Unmanaged doesn't free Memory Pin
Guilio karadanais19-Jul-04 5:07
Guilio karadanais19-Jul-04 5:07 
GeneralHex to Dec conversion (big numbas!) Pin
Blubbo19-Jul-04 4:06
Blubbo19-Jul-04 4:06 
GeneralRe: Hex to Dec conversion (big numbas!) Pin
Heath Stewart19-Jul-04 4:30
protectorHeath Stewart19-Jul-04 4:30 
GeneralEAP Certificate requests... Pin
Vodstok19-Jul-04 4:03
Vodstok19-Jul-04 4:03 
GeneralRe: EAP Certificate requests... Pin
Heath Stewart19-Jul-04 4:42
protectorHeath Stewart19-Jul-04 4:42 
GeneralRegular Expressions Pin
Anonymous19-Jul-04 3:54
Anonymous19-Jul-04 3:54 
Questionhow do I get the cursor position?? Pin
Stephan Wright19-Jul-04 1:31
Stephan Wright19-Jul-04 1:31 
AnswerRe: how do I get the cursor position?? Pin
misterbear19-Jul-04 2:07
misterbear19-Jul-04 2:07 
GeneralRe: how do I get the cursor position?? Pin
Stephan Wright19-Jul-04 2:19
Stephan Wright19-Jul-04 2:19 
GeneralRe: how do I get the cursor position?? Pin
Heath Stewart19-Jul-04 3:18
protectorHeath Stewart19-Jul-04 3:18 
GeneralRe: how do I get the cursor position?? Pin
Stephan Wright19-Jul-04 3:53
Stephan Wright19-Jul-04 3:53 
Questionhow to get the supported cryptographic algorithm on current .net platform Pin
noosword18-Jul-04 23:54
noosword18-Jul-04 23:54 
AnswerRe: how to get the supported cryptographic algorithm on current .net platform Pin
Heath Stewart19-Jul-04 2:39
protectorHeath Stewart19-Jul-04 2:39 
GeneralQuestion abt service Pin
SatyaDY18-Jul-04 23:51
SatyaDY18-Jul-04 23:51 
GeneralRe: Question abt service Pin
RB@Emphasys19-Jul-04 6:44
RB@Emphasys19-Jul-04 6:44 
GeneralReferences controls created at runtime Pin
JKtracksub418-Jul-04 21:41
JKtracksub418-Jul-04 21:41 
GeneralRe: References controls created at runtime Pin
Heath Stewart19-Jul-04 2:51
protectorHeath Stewart19-Jul-04 2:51 

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.