Click here to Skip to main content
15,889,595 members
Home / Discussions / C#
   

C#

 
AnswerRe: logical and operator Pin
DaveyM6925-Jul-08 22:43
professionalDaveyM6925-Jul-08 22:43 
AnswerRe: logical and operator Pin
Ed.Poore25-Jul-08 22:47
Ed.Poore25-Jul-08 22:47 
Questionconnecting local network server for updating in c sharp Pin
maheshChowta25-Jul-08 19:10
maheshChowta25-Jul-08 19:10 
AnswerRe: connecting local network server for updating in c sharp Pin
Ed.Poore25-Jul-08 22:30
Ed.Poore25-Jul-08 22:30 
QuestionButton removed but not disposed Pin
netJP12L25-Jul-08 18:33
netJP12L25-Jul-08 18:33 
AnswerRe: Button removed but not disposed Pin
Ed.Poore25-Jul-08 22:28
Ed.Poore25-Jul-08 22:28 
GeneralRe: Button removed but not disposed Pin
netJP12L26-Jul-08 5:05
netJP12L26-Jul-08 5:05 
GeneralRe: Button removed but not disposed Pin
Ed.Poore26-Jul-08 8:58
Ed.Poore26-Jul-08 8:58 
If I remember correctly then it's not safe to do anything with an object after it's been disposed because the Garbage Collector may free it up (make it null essentially) at any point.


netJP12L wrote:
What if I am done using 100 Button objects wouldn't they perserve their space in memory

Set them to null after you've disposed of them:
aButton.Dispose();
aButton = null;

That'll make sure you don't access them accidentally, the GC will free them up as and when it needs space.


I doubt it. If it isn't intuitive then we need to fix it. - Chris Maunder

Questiondeterming the full name to My Music on the start menu Pin
Jason Coggins25-Jul-08 16:56
Jason Coggins25-Jul-08 16:56 
AnswerRe: determing the full name to My Music on the start menu Pin
mr.mohsen25-Jul-08 21:37
mr.mohsen25-Jul-08 21:37 
AnswerRe: determing the full name to My Music on the start menu Pin
Ed.Poore25-Jul-08 22:54
Ed.Poore25-Jul-08 22:54 
AnswerRe: determing the full name to My Music on the start menu Pin
DaveyM6925-Jul-08 23:01
professionalDaveyM6925-Jul-08 23:01 
AnswerRe: determing the full name to My Music on the start menu Pin
Luc Pattyn26-Jul-08 2:47
sitebuilderLuc Pattyn26-Jul-08 2:47 
QuestionOverriding ToString() with arguments Pin
JoeRip25-Jul-08 16:05
JoeRip25-Jul-08 16:05 
AnswerRe: Overriding ToString() with arguments Pin
PIEBALDconsult25-Jul-08 19:35
mvePIEBALDconsult25-Jul-08 19:35 
GeneralRe: Overriding ToString() with arguments Pin
JoeRip25-Jul-08 23:13
JoeRip25-Jul-08 23:13 
GeneralRe: Overriding ToString() with arguments Pin
JoeRip25-Jul-08 23:51
JoeRip25-Jul-08 23:51 
GeneralRe: Overriding ToString() with arguments Pin
PIEBALDconsult26-Jul-08 3:35
mvePIEBALDconsult26-Jul-08 3:35 
AnswerRe: Overriding ToString() with arguments Pin
DaveyM6925-Jul-08 23:07
professionalDaveyM6925-Jul-08 23:07 
GeneralRe: Overriding ToString() with arguments Pin
JoeRip25-Jul-08 23:12
JoeRip25-Jul-08 23:12 
GeneralRe: Overriding ToString() with arguments Pin
DaveyM6925-Jul-08 23:29
professionalDaveyM6925-Jul-08 23:29 
GeneralRe: Overriding ToString() with arguments Pin
JoeRip25-Jul-08 23:43
JoeRip25-Jul-08 23:43 
AnswerRe: Overriding ToString() with arguments Pin
BhadeliaImran26-Jul-08 2:23
BhadeliaImran26-Jul-08 2:23 
AnswerRe: Overriding ToString() with arguments Pin
Luc Pattyn26-Jul-08 2:53
sitebuilderLuc Pattyn26-Jul-08 2:53 
Questionstatusstrip <---data Pin
nelsonpaixao25-Jul-08 14:34
nelsonpaixao25-Jul-08 14:34 

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.