Click here to Skip to main content
15,883,901 members
Home / Discussions / C#
   

C#

 
GeneralRe: What do you think this is about? Pin
Jasmine250131-Jul-13 11:18
Jasmine250131-Jul-13 11:18 
GeneralRe: What do you think this is about? Pin
Ravi Bhavnani31-Jul-13 12:02
professionalRavi Bhavnani31-Jul-13 12:02 
GeneralRe: What do you think this is about? Pin
Jasmine250131-Jul-13 12:23
Jasmine250131-Jul-13 12:23 
GeneralRe: What do you think this is about? Pin
Ravi Bhavnani31-Jul-13 12:39
professionalRavi Bhavnani31-Jul-13 12:39 
AnswerRe: What do you think this is about? Pin
Bernhard Hiller31-Jul-13 21:16
Bernhard Hiller31-Jul-13 21:16 
AnswerRe: What do you think this is about? Pin
BillWoodruff1-Aug-13 2:09
professionalBillWoodruff1-Aug-13 2:09 
GeneralRe: What do you think this is about? Pin
Jasmine25012-Aug-13 5:56
Jasmine25012-Aug-13 5:56 
QuestionManaging List<Bitmap> Pin
BBatts31-Jul-13 4:34
BBatts31-Jul-13 4:34 
Hello All,

I have an application that frequently uses the general List object with an bitmap type". I have two questions concerning these.

1: What is the best way to copy the bitmaps from one list to another while ensuring the Bitmaps in the original list are unchanged if changes are made to the new list. Currently i'm doing it in a forloop such as:

C#
List<Bitmap> aviList1 = new List<Bitmap>();  aviList1.Clear();

  for (int i=0; I originalList.Count; i++)
    aviList1.Add(new Bitmap(originalList[i]));


2: Is calling originalList.Clear sufficient to free up the memory or would it be necessary to loop through the list and dispose of the Bitmaps individually?

Thanks in advance for the always great support here at CodeProject.

Bryan
AnswerRe: Managing List<Bitmap> Pin
OriginalGriff31-Jul-13 8:28
mveOriginalGriff31-Jul-13 8:28 
GeneralRe: Managing List<Bitmap> Pin
BillWoodruff1-Aug-13 2:35
professionalBillWoodruff1-Aug-13 2:35 
GeneralRe: Managing List<Bitmap> Pin
OriginalGriff1-Aug-13 2:54
mveOriginalGriff1-Aug-13 2:54 
AnswerRe: Managing List<Bitmap> Pin
Pete O'Hanlon1-Aug-13 3:04
mvePete O'Hanlon1-Aug-13 3:04 
QuestionRegular expressions. Pin
Septimus Hedgehog31-Jul-13 3:06
Septimus Hedgehog31-Jul-13 3:06 
AnswerRe: Regular expressions. Pin
Pete O'Hanlon31-Jul-13 3:09
mvePete O'Hanlon31-Jul-13 3:09 
GeneralRe: Regular expressions. Pin
Septimus Hedgehog31-Jul-13 3:15
Septimus Hedgehog31-Jul-13 3:15 
QuestionTreeview in windows application Pin
Arun kumar Gautam31-Jul-13 0:26
Arun kumar Gautam31-Jul-13 0:26 
AnswerRe: Treeview in windows application Pin
Simon_Whale31-Jul-13 0:46
Simon_Whale31-Jul-13 0:46 
AnswerRe: Treeview in windows application Pin
Abhinav S31-Jul-13 1:12
Abhinav S31-Jul-13 1:12 
QuestionRe: Treeview in windows application Pin
Eddy Vluggen31-Jul-13 3:16
professionalEddy Vluggen31-Jul-13 3:16 
AnswerRe: Treeview in windows application Pin
Arun kumar Gautam31-Jul-13 3:19
Arun kumar Gautam31-Jul-13 3:19 
QuestionProblem with treeview in windows application Pin
Arun kumar Gautam31-Jul-13 0:25
Arun kumar Gautam31-Jul-13 0:25 
QuestionOO Design Pin
KeithF30-Jul-13 22:53
KeithF30-Jul-13 22:53 
QuestionRe: OO Design Pin
Eddy Vluggen31-Jul-13 8:36
professionalEddy Vluggen31-Jul-13 8:36 
AnswerRe: OO Design Pin
KeithF31-Jul-13 21:58
KeithF31-Jul-13 21:58 
Questionfilter interface Pin
Atul Kumar Singh230-Jul-13 19:44
Atul Kumar Singh230-Jul-13 19:44 

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.