Click here to Skip to main content
15,909,437 members
Home / Discussions / C#
   

C#

 
Generaldraw 2 transparent png one over the other Pin
Sasuko15-Jun-05 11:30
Sasuko15-Jun-05 11:30 
GeneralRe: draw 2 transparent png one over the other Pin
Christian Graus15-Jun-05 13:47
protectorChristian Graus15-Jun-05 13:47 
GeneralHttpWebRequest Troubles Pin
dhonda15-Jun-05 9:25
dhonda15-Jun-05 9:25 
QuestionBatch SqlCommand execution? Pin
Judah Gabriel Himango15-Jun-05 9:09
sponsorJudah Gabriel Himango15-Jun-05 9:09 
GeneralSockets and ArrayLists Pin
obelisk2915-Jun-05 8:33
obelisk2915-Jun-05 8:33 
GeneralRe: Sockets and ArrayLists Pin
eggie515-Jun-05 19:21
eggie515-Jun-05 19:21 
GeneralImaging Application - not enough RAM Pin
Libor Tinka15-Jun-05 8:03
Libor Tinka15-Jun-05 8:03 
GeneralRe: Imaging Application - not enough RAM Pin
DavidNohejl15-Jun-05 8:19
DavidNohejl15-Jun-05 8:19 
ltinka wrote:
I thought that Garbage Collector should remove all resources, but it's quite inactive... When I force thumbnail image to dispose (calling Image.Dispose()), nothing change.

You are right that GC doesn't do anything. GC is very lazy. Because of performance it basically collects memory when there isn't enough free memory, or when you tell it to do so (calling GC.Collect()) Here[^] is a lot information about GC.

Task manager shows memory allocated for a process, and this is actually bigger than memory used. IIRC that's what execution engine (I think) does - allocating is expansive operation, so it tries to minimalize allocation (by allocation bigger blocks of memory at once).


ltinka wrote:
When I force thumbnail image to dispose (calling Image.Dispose()), nothing change.

You should always do that. Exactly for very reason how GC works.

David
GeneralRe: Imaging Application - not enough RAM Pin
Judah Gabriel Himango15-Jun-05 8:30
sponsorJudah Gabriel Himango15-Jun-05 8:30 
GeneralRe: Imaging Application - not enough RAM Pin
Dave Kreskowiak15-Jun-05 8:51
mveDave Kreskowiak15-Jun-05 8:51 
GeneralRe: Imaging Application - not enough RAM Pin
DavidNohejl15-Jun-05 12:44
DavidNohejl15-Jun-05 12:44 
GeneralRe: Imaging Application - not enough RAM Pin
JDUK15-Jun-05 12:12
JDUK15-Jun-05 12:12 
GeneralRe: Imaging Application - not enough RAM Pin
Dave Kreskowiak15-Jun-05 18:52
mveDave Kreskowiak15-Jun-05 18:52 
GeneralRe: Imaging Application - not enough RAM Pin
Christian Graus15-Jun-05 13:48
protectorChristian Graus15-Jun-05 13:48 
GeneralRe: Imaging Application - not enough RAM Pin
Libor Tinka16-Jun-05 1:02
Libor Tinka16-Jun-05 1:02 
GeneralDetecting New Mail -- Exchange Server 2000 Pin
JMKerp295815-Jun-05 7:47
JMKerp295815-Jun-05 7:47 
GeneralNumber of pages in PrintPreviewControl Pin
Luis Alonso Ramos15-Jun-05 7:47
Luis Alonso Ramos15-Jun-05 7:47 
GeneralRe: Number of pages in PrintPreviewControl -- solved Pin
Luis Alonso Ramos15-Jun-05 8:50
Luis Alonso Ramos15-Jun-05 8:50 
GeneralOffice Interop - Populating Checkboxes Pin
tsmyrnio15-Jun-05 7:43
tsmyrnio15-Jun-05 7:43 
QuestionGDI+ drawing strings causes messed gaps between letters - how to fix? Pin
iliyang15-Jun-05 7:16
iliyang15-Jun-05 7:16 
AnswerRe: GDI+ drawing strings causes messed gaps between letters - how to fix? Pin
MoustafaS15-Jun-05 8:25
MoustafaS15-Jun-05 8:25 
GeneralRe: GDI+ drawing strings causes messed gaps between letters - how to fix? Pin
iliyang15-Jun-05 11:16
iliyang15-Jun-05 11:16 
GeneralPassing strings from C++ to C# Pin
Paul Largent15-Jun-05 6:51
Paul Largent15-Jun-05 6:51 
GeneralRe: Passing strings from C++ to C# Pin
S. Senthil Kumar15-Jun-05 6:56
S. Senthil Kumar15-Jun-05 6:56 
GeneralObtaining a reference to the TreeView item in a context menu Pin
SerialHobbyist15-Jun-05 6:28
SerialHobbyist15-Jun-05 6:28 

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.