Click here to Skip to main content
15,921,905 members
Home / Discussions / C#
   

C#

 
GeneralRe: .NET Framework Version Pin
James T. Johnson29-Jul-02 20:21
James T. Johnson29-Jul-02 20:21 
GeneralRe: .NET Framework Version Pin
Jamie Nordmeyer30-Jul-02 6:16
Jamie Nordmeyer30-Jul-02 6:16 
GeneralRe: .NET Framework Version Pin
Andy Smith30-Jul-02 8:36
Andy Smith30-Jul-02 8:36 
GeneralRe: .NET Framework Version Pin
Jamie Nordmeyer30-Jul-02 8:40
Jamie Nordmeyer30-Jul-02 8:40 
GeneralRe: .NET Framework Version Pin
Andy Smith30-Jul-02 10:47
Andy Smith30-Jul-02 10:47 
QuestionClipboard copy to Bitmap losing memory? Pin
Richard Carpenter29-Jul-02 11:17
Richard Carpenter29-Jul-02 11:17 
AnswerRe: Clipboard copy to Bitmap losing memory? Pin
Eric Gunnerson (msft)30-Jul-02 8:48
Eric Gunnerson (msft)30-Jul-02 8:48 
GeneralRe: Clipboard copy to Bitmap losing memory? Pin
Richard Carpenter30-Jul-02 9:05
Richard Carpenter30-Jul-02 9:05 
I have tried inserting a GC.Collect(); after the BM=null; line. This did not seem to have any effect. I also placed a GC.Collect(); after the entire loop ran to see if it cleaned up any - it did not.

I have also tried replacing the
'bm = (Bitmap) iData.GetData(DataFormats.Bitmap);'

with

bm = (Bitmap) new Bitmap(512,512); // or whatever that constructor is

This then worked - the memory fluctuated by a couple megs up and down but after the routine exited left no memory in use. This was even without a GC.Collect(); line in the routine.

Oh, I also did try bm.Dispose(); but this also did not free the bitmap.

Lastly, I am looking at the NT's task manager - not the most fine of memory gauges, but each bitmap I get uses about 1 meg of memory. A loop of 100 iterations will cause the task manager to show nearly 100 megs more in use.

Thanks for the reply!
GeneralDisk Format Pin
Jassim Rahma29-Jul-02 10:49
Jassim Rahma29-Jul-02 10:49 
Generalbring to front Pin
SHaroz29-Jul-02 9:27
SHaroz29-Jul-02 9:27 
GeneralRe: bring to front Pin
Nathan Blomquist29-Jul-02 9:50
Nathan Blomquist29-Jul-02 9:50 
GeneralRe: bring to front Pin
SHaroz29-Jul-02 10:21
SHaroz29-Jul-02 10:21 
GeneralRe: bring to front Pin
Nathan Blomquist29-Jul-02 12:17
Nathan Blomquist29-Jul-02 12:17 
GeneralRe: bring to front Pin
Luis Alonso Ramos29-Jul-02 12:14
Luis Alonso Ramos29-Jul-02 12:14 
GeneralRe: bring to front Pin
SHaroz30-Jul-02 5:06
SHaroz30-Jul-02 5:06 
GeneralScheduled Tasks Pin
cAptHiDDeN29-Jul-02 9:22
cAptHiDDeN29-Jul-02 9:22 
GeneralRe: Scheduled Tasks Pin
James T. Johnson29-Jul-02 18:00
James T. Johnson29-Jul-02 18:00 
GeneralRe: Scheduled Tasks Pin
cAptHiDDeN30-Jul-02 2:29
cAptHiDDeN30-Jul-02 2:29 
GeneralDelegate argument question/suggestions... Pin
Ryan Cromwell29-Jul-02 6:32
Ryan Cromwell29-Jul-02 6:32 
GeneralRe: Delegate argument question/suggestions... Pin
Eric Gunnerson (msft)29-Jul-02 10:53
Eric Gunnerson (msft)29-Jul-02 10:53 
GeneralRe: Delegate argument question/suggestions... Pin
Ryan Cromwell29-Jul-02 17:42
Ryan Cromwell29-Jul-02 17:42 
GeneralRe: Delegate argument question/suggestions... Pin
Eric Gunnerson (msft)30-Jul-02 8:41
Eric Gunnerson (msft)30-Jul-02 8:41 
GeneralConverting images Pin
Ahmed Diaa29-Jul-02 5:55
Ahmed Diaa29-Jul-02 5:55 
GeneralRe: Converting images Pin
Luis Alonso Ramos29-Jul-02 6:37
Luis Alonso Ramos29-Jul-02 6:37 
GeneralEquivilent of session in windows Pin
Anonymous29-Jul-02 3:21
Anonymous29-Jul-02 3:21 

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.