Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
QuestionDesigning Custom Membership Object Questions... Pin
spar108r10-Feb-07 6:51
spar108r10-Feb-07 6:51 
QuestionGripStyle Pin
max2929710-Feb-07 6:19
max2929710-Feb-07 6:19 
QuestionYour Opinion Is Needed .... [modified] Pin
Khoramdin10-Feb-07 6:15
Khoramdin10-Feb-07 6:15 
QuestionBitmap Vs Image Pin
shabonaa10-Feb-07 4:47
shabonaa10-Feb-07 4:47 
AnswerRe: Bitmap Vs Image Pin
Stefan Troschuetz10-Feb-07 4:53
Stefan Troschuetz10-Feb-07 4:53 
AnswerRe: Bitmap Vs Image Pin
ali_reza_zareian10-Feb-07 10:59
ali_reza_zareian10-Feb-07 10:59 
QuestionForm's distructor not called upon close... Pin
Shy Agam10-Feb-07 3:57
Shy Agam10-Feb-07 3:57 
AnswerRe: Form's distructor not called upon close... Pin
Guffa10-Feb-07 4:04
Guffa10-Feb-07 4:04 
There aren't any destructors in .NET, as there are no reference counters. The destructor syntax is instead used for a finalizer. The finalizer is called by a background process after the garbage collector has recognised that the object can be freed, but as the form object is one of the last objects to go when you close the application, there will rarely be any garbage collection that can place it in the queue of objects to be finalized.

You should use the events of the form that occurs when it's unloaded, to free it's resources.

---
single minded; short sighted; long gone;

GeneralRe: Form's distructor not called upon close... Pin
Shy Agam10-Feb-07 4:25
Shy Agam10-Feb-07 4:25 
GeneralRe: Form's distructor not called upon close... Pin
Scott Dorman10-Feb-07 4:53
professionalScott Dorman10-Feb-07 4:53 
GeneralRe: Form's distructor not called upon close... Pin
Shy Agam10-Feb-07 4:59
Shy Agam10-Feb-07 4:59 
GeneralRe: Form's distructor not called upon close... Pin
Colin Angus Mackay10-Feb-07 5:00
Colin Angus Mackay10-Feb-07 5:00 
GeneralRe: Form's distructor not called upon close... Pin
Shy Agam10-Feb-07 5:04
Shy Agam10-Feb-07 5:04 
GeneralRe: Form's distructor not called upon close... Pin
Guffa10-Feb-07 5:51
Guffa10-Feb-07 5:51 
AnswerRe: Form's distructor not called upon close... Pin
PIEBALDconsult10-Feb-07 15:14
mvePIEBALDconsult10-Feb-07 15:14 
GeneralRe: Form's distructor not called upon close... Pin
Shy Agam10-Feb-07 20:34
Shy Agam10-Feb-07 20:34 
QuestionShutdown Pc from withing code! Pin
Hussam Fattahi10-Feb-07 3:06
Hussam Fattahi10-Feb-07 3:06 
AnswerRe: Shutdown Pc from withing code! Pin
M Harris10-Feb-07 3:15
M Harris10-Feb-07 3:15 
QuestionParameter value '2.3333333333333333333333333333' is out of range Pin
Nafiseh Salmani10-Feb-07 0:38
Nafiseh Salmani10-Feb-07 0:38 
AnswerRe: Parameter value '2.3333333333333333333333333333' is out of range Pin
Colin Angus Mackay10-Feb-07 1:08
Colin Angus Mackay10-Feb-07 1:08 
QuestionWindows Service Pin
Syed Shahid Hussain10-Feb-07 0:15
Syed Shahid Hussain10-Feb-07 0:15 
AnswerRe: Windows Service Pin
Michael P Butler10-Feb-07 1:25
Michael P Butler10-Feb-07 1:25 
GeneralRe: Windows Service Pin
Syed Shahid Hussain11-Feb-07 17:30
Syed Shahid Hussain11-Feb-07 17:30 
AnswerRe: Windows Service Pin
Dave Kreskowiak10-Feb-07 4:09
mveDave Kreskowiak10-Feb-07 4:09 
GeneralRe: Windows Service Pin
Syed Shahid Hussain11-Feb-07 17:32
Syed Shahid Hussain11-Feb-07 17:32 

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.