Click here to Skip to main content
16,006,013 members
Home / Discussions / C#
   

C#

 
GeneralRe: please delete thread.... Pin
shwaguy28-Dec-07 8:32
shwaguy28-Dec-07 8:32 
GeneralRe: please delete thread.... Pin
Paul Conrad28-Dec-07 9:18
professionalPaul Conrad28-Dec-07 9:18 
GeneralGenerating Random Strings from an array and placing them into a textbox.... Pin
DSdragondude28-Dec-07 4:03
DSdragondude28-Dec-07 4:03 
GeneralRe: Generating Random Strings from an array and placing them into a textbox.... Pin
KaptinKrunch28-Dec-07 4:12
KaptinKrunch28-Dec-07 4:12 
GeneralRe: Generating Random Strings from an array and placing them into a textbox.... Pin
DSdragondude28-Dec-07 4:27
DSdragondude28-Dec-07 4:27 
AnswerRe: Generating Random Strings from an array and placing them into a textbox.... [modified] Pin
KaptinKrunch28-Dec-07 4:42
KaptinKrunch28-Dec-07 4:42 
GeneralRe: Generating Random Strings from an array and placing them into a textbox.... Pin
Luc Pattyn28-Dec-07 7:20
sitebuilderLuc Pattyn28-Dec-07 7:20 
GeneralDisposing of objects Pin
Gareth H28-Dec-07 2:49
Gareth H28-Dec-07 2:49 
Hi,

This is more of a theory question i guess. I've recently been looking at some old code and trying to improve it. I've always been told you should dispose of objects once you've finished with them, but never have as i've only been working on small projects.

However, its came time for me to start improving on this. In one section of my code i create a List<string> and pass it to my sql statement builder. My understanding is that now i have 2 Lists in memory, one used in the sql statements method and one in the method i used to create it.

Would it be better to pass it to the sql statements method as a ref and then clear its list at the end of the method i created it in? or just pass it normally and clear it in both methods?

Regards,
Gareth.
GeneralRe: Disposing of objects Pin
Not Active28-Dec-07 3:35
mentorNot Active28-Dec-07 3:35 
GeneralRe: Disposing of objects Pin
Gareth H28-Dec-07 3:50
Gareth H28-Dec-07 3:50 
GeneralRe: Disposing of objects Pin
Colin Angus Mackay28-Dec-07 3:56
Colin Angus Mackay28-Dec-07 3:56 
GeneralRe: Disposing of objects Pin
Gareth H28-Dec-07 4:09
Gareth H28-Dec-07 4:09 
GeneralRe: Disposing of objects Pin
Colin Angus Mackay28-Dec-07 4:14
Colin Angus Mackay28-Dec-07 4:14 
GeneralRe: Disposing of objects Pin
Not Active28-Dec-07 6:18
mentorNot Active28-Dec-07 6:18 
GeneralRe: Disposing of objects Pin
Paul Conrad28-Dec-07 7:00
professionalPaul Conrad28-Dec-07 7:00 
GeneralRe: Disposing of objects Pin
GuyThiebaut28-Dec-07 3:38
professionalGuyThiebaut28-Dec-07 3:38 
GeneralRe: Disposing of objects Pin
Luc Pattyn28-Dec-07 3:57
sitebuilderLuc Pattyn28-Dec-07 3:57 
GeneralRe: Disposing of objects Pin
Gareth H28-Dec-07 4:10
Gareth H28-Dec-07 4:10 
QuestionExceptions and Backgroundworker Pin
boersnoes28-Dec-07 2:43
boersnoes28-Dec-07 2:43 
GeneralRe: Exceptions and Backgroundworker Pin
KaptinKrunch28-Dec-07 4:26
KaptinKrunch28-Dec-07 4:26 
GeneralRe: Exceptions and Backgroundworker Pin
boersnoes28-Dec-07 5:23
boersnoes28-Dec-07 5:23 
GeneralRe: Exceptions and Backgroundworker Pin
KaptinKrunch28-Dec-07 5:52
KaptinKrunch28-Dec-07 5:52 
GeneralRe: Exceptions and Backgroundworker Pin
boersnoes30-Dec-07 22:07
boersnoes30-Dec-07 22:07 
Generaltags Pin
Luc Pattyn28-Dec-07 5:56
sitebuilderLuc Pattyn28-Dec-07 5:56 
GeneralRe: tags Pin
boersnoes30-Dec-07 22:08
boersnoes30-Dec-07 22:08 

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.