Click here to Skip to main content
15,880,608 members
Home / Discussions / C#
   

C#

 
GeneralRe: [Added informatio] Deleting objects from a collection [modified] Pin
CaptainSeeSharp17-Oct-09 13:20
CaptainSeeSharp17-Oct-09 13:20 
GeneralRe: [Added informatio] Deleting objects from a collection Pin
Luc Pattyn17-Oct-09 13:36
sitebuilderLuc Pattyn17-Oct-09 13:36 
GeneralRe: [Added informatio] Deleting objects from a collection Pin
CaptainSeeSharp17-Oct-09 13:43
CaptainSeeSharp17-Oct-09 13:43 
GeneralRe: [Added informatio] Deleting objects from a collection Pin
Luc Pattyn17-Oct-09 13:53
sitebuilderLuc Pattyn17-Oct-09 13:53 
GeneralRe: [Added informatio] Deleting objects from a collection Pin
Luc Pattyn17-Oct-09 13:47
sitebuilderLuc Pattyn17-Oct-09 13:47 
GeneralRe: [Added informatio] Deleting objects from a collection Pin
harold aptroot17-Oct-09 14:09
harold aptroot17-Oct-09 14:09 
AnswerRe: Deleting objects from a collection Pin
dojohansen17-Oct-09 23:05
dojohansen17-Oct-09 23:05 
AnswerThanks everyone - results Pin
Trollslayer18-Oct-09 2:58
mentorTrollslayer18-Oct-09 2:58 
OK, you've all been a great help and this is what I've learned/decided:
ArrayList is not as efficient as List but I will use it for the output table list since it there will be a number of different table types and as long as they have a large number of common methods it is an easy method of keeping the tables in sequence (this is very important for my application).
You have to treat the LOH with respect - I'm using VS2005 for competibility reasons so I don't know if the fragmentation issue is present.
Although you can try to force garbage collection it looks like this is likely to cause more problems than it solves in my case.
Collections use arrays which double to cope with increases in size can cause problems but since I am using collections of objects then it is the references that double so the object overhead probably isn't too bad.
The using statement looks interesting, I'll consider it for the second version of my stream analysis engine.
Reuse of objects - yes, in an application such as the one I am working on processing 4GB video (DBV actually) files the singleton principle of creating an object only if required and then reusing it is very important since I will have arrays of arrays of table - not a two dimensional array of tables.

Oh, there will definitely be a second version of the analysis engine but as the application is commpany confidential I'm not sure what will go into my first article, probably a beginners guide to multi threading user interfaces which as it's own oddities for a beginner to muddle though.

Thanks everyone.

Visit http://www.notreadytogiveup.com/[^] and do something special today.

GeneralRe: Thanks everyone - results Pin
DaveyM6918-Oct-09 3:51
professionalDaveyM6918-Oct-09 3:51 
GeneralRe: Thanks everyone - results Pin
Trollslayer18-Oct-09 3:57
mentorTrollslayer18-Oct-09 3:57 
GeneralRe: Thanks everyone - results Pin
DaveyM6918-Oct-09 4:04
professionalDaveyM6918-Oct-09 4:04 
Questiongetting Bios date from c# in win64 environments Pin
Fred 3417-Oct-09 7:17
Fred 3417-Oct-09 7:17 
AnswerRe: getting Bios date from c# in win64 environments Pin
Abhijit Jana17-Oct-09 8:24
professionalAbhijit Jana17-Oct-09 8:24 
GeneralRe: getting Bios date from c# in win64 environments Pin
Fred 3417-Oct-09 9:09
Fred 3417-Oct-09 9:09 
GeneralRe: getting Bios date from c# in win64 environments Pin
Richard MacCutchan17-Oct-09 9:30
mveRichard MacCutchan17-Oct-09 9:30 
GeneralRe: getting Bios date from c# in win64 environments Pin
Abhijit Jana17-Oct-09 9:58
professionalAbhijit Jana17-Oct-09 9:58 
AnswerRe: getting Bios date from c# in win64 environments Pin
Vimalsoft(Pty) Ltd17-Oct-09 8:58
professionalVimalsoft(Pty) Ltd17-Oct-09 8:58 
AnswerRe: getting Bios date from c# in win64 environments Pin
dan!sh 17-Oct-09 9:49
professional dan!sh 17-Oct-09 9:49 
AnswerRe: getting Bios date from c# in win64 environments Pin
Dave Kreskowiak18-Oct-09 2:34
mveDave Kreskowiak18-Oct-09 2:34 
QuestionTextObject in CrystalReport Pin
ZeinabTavana17-Oct-09 6:52
ZeinabTavana17-Oct-09 6:52 
Questiongetting biosdate Pin
Fred 3417-Oct-09 5:58
Fred 3417-Oct-09 5:58 
AnswerRe: getting biosdate Pin
Not Active17-Oct-09 10:31
mentorNot Active17-Oct-09 10:31 
GeneralRe: getting biosdate Pin
Luc Pattyn17-Oct-09 12:17
sitebuilderLuc Pattyn17-Oct-09 12:17 
GeneralRe: getting biosdate Pin
Not Active17-Oct-09 16:21
mentorNot Active17-Oct-09 16:21 
QuestionWhile MouseDown Pin
Zap-Man17-Oct-09 3:27
Zap-Man17-Oct-09 3:27 

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.