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

C#

 
GeneralRe: dispose wrapped resource Pin
Simon P Stevens15-Apr-08 7:34
Simon P Stevens15-Apr-08 7:34 
GeneralRe: dispose wrapped resource Pin
George_George15-Apr-08 23:25
George_George15-Apr-08 23:25 
GeneralRe: dispose wrapped resource Pin
Simon P Stevens16-Apr-08 1:21
Simon P Stevens16-Apr-08 1:21 
GeneralRe: dispose wrapped resource Pin
George_George16-Apr-08 1:55
George_George16-Apr-08 1:55 
GeneralRe: dispose wrapped resource Pin
Simon P Stevens16-Apr-08 4:18
Simon P Stevens16-Apr-08 4:18 
GeneralRe: dispose wrapped resource Pin
George_George16-Apr-08 4:23
George_George16-Apr-08 4:23 
GeneralRe: dispose wrapped resource Pin
led mike15-Apr-08 5:13
led mike15-Apr-08 5:13 
GeneralRe: dispose wrapped resource [modified] Pin
Simon P Stevens15-Apr-08 7:09
Simon P Stevens15-Apr-08 7:09 
Yeah, I agree, I've seen the dispose pattern done wrong so many times. The advantage is though even if you totally screw it up, the worst that can happen is that all your objects will have to be finalized. Disposal is really just a way of improving performance [EDIT] and releasing resources immediately [/EDIT] by cleaning things up yourself without waiting and relying the gc finalizer.



Last modified: 28mins after originally posted --


Simon

GeneralRe: dispose wrapped resource Pin
George_George15-Apr-08 23:28
George_George15-Apr-08 23:28 
GeneralRe: dispose wrapped resource Pin
Simon P Stevens16-Apr-08 1:32
Simon P Stevens16-Apr-08 1:32 
GeneralRe: dispose wrapped resource Pin
George_George16-Apr-08 1:59
George_George16-Apr-08 1:59 
GeneralRe: dispose wrapped resource Pin
Zoltan Balazs16-Apr-08 2:41
Zoltan Balazs16-Apr-08 2:41 
GeneralRe: dispose wrapped resource Pin
George_George16-Apr-08 2:46
George_George16-Apr-08 2:46 
GeneralRe: dispose wrapped resource Pin
Zoltan Balazs15-Apr-08 7:44
Zoltan Balazs15-Apr-08 7:44 
GeneralRe: dispose wrapped resource Pin
George_George15-Apr-08 23:31
George_George15-Apr-08 23:31 
GeneralRe: dispose wrapped resource Pin
Zoltan Balazs16-Apr-08 2:39
Zoltan Balazs16-Apr-08 2:39 
GeneralRe: dispose wrapped resource Pin
George_George16-Apr-08 2:44
George_George16-Apr-08 2:44 
GeneralCoding Style Question Pin
Waleed Eissa15-Apr-08 4:40
Waleed Eissa15-Apr-08 4:40 
GeneralRe: Coding Style Question Pin
led mike15-Apr-08 4:59
led mike15-Apr-08 4:59 
GeneralRe: Coding Style Question Pin
leppie15-Apr-08 5:09
leppie15-Apr-08 5:09 
GeneralRe: Coding Style Question Pin
Waleed Eissa15-Apr-08 5:12
Waleed Eissa15-Apr-08 5:12 
GeneralRe: Coding Style Question Pin
Dan Neely15-Apr-08 5:26
Dan Neely15-Apr-08 5:26 
GeneralRe: Coding Style Question Pin
Waleed Eissa15-Apr-08 5:38
Waleed Eissa15-Apr-08 5:38 
GeneralRe: Coding Style Question Pin
Dan Neely15-Apr-08 7:00
Dan Neely15-Apr-08 7:00 
GeneralRe: Coding Style Question Pin
K.L.K15-Apr-08 8:45
K.L.K15-Apr-08 8:45 

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.