Click here to Skip to main content
15,887,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionself referential classes Pin
Sonia Gupta15-May-07 0:50
Sonia Gupta15-May-07 0:50 
AnswerRe: self referential classes Pin
Colin Angus Mackay15-May-07 0:53
Colin Angus Mackay15-May-07 0:53 
QuestionRe: self referential classes Pin
Sonia Gupta15-May-07 0:56
Sonia Gupta15-May-07 0:56 
AnswerRe: self referential classes Pin
Colin Angus Mackay15-May-07 1:56
Colin Angus Mackay15-May-07 1:56 
GeneralRe: self referential classes Pin
Sonia Gupta15-May-07 2:01
Sonia Gupta15-May-07 2:01 
GeneralRe: self referential classes Pin
Colin Angus Mackay15-May-07 3:55
Colin Angus Mackay15-May-07 3:55 
Questionbasic concepts Pin
Sonia Gupta15-May-07 0:39
Sonia Gupta15-May-07 0:39 
AnswerRe: basic concepts Pin
Dave Kreskowiak15-May-07 3:56
mveDave Kreskowiak15-May-07 3:56 
Nilish wrote:
1. y the automatic call of the class1 destructor is not getting called on form2 closing because class1 is assigned the memory in form2.


Because object destruction is non-deterministic. This means that you cannot predict when an object that is no longer in use is going to be destroyed and collected. The Finalize code won't get called until the GC gets around to collecting the object. This could take a while. The GC is a bit lazy, but it's very good at it's job when it gets around to doing it.


Nilish wrote:
2. Can i call the finalize function of class1 using it's object


Why? It's very rare that you ever need to put code into the Finalize method. Instead, put your clean up code into the Dispose method instead and call Dispose when your code needs to destroy an instance of the object and free up resources and a known time.



A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


QuestionUrgently required solution Pin
d_smit15-May-07 0:34
d_smit15-May-07 0:34 
AnswerRe: Urgently required solution Pin
Colin Angus Mackay15-May-07 0:51
Colin Angus Mackay15-May-07 0:51 
Answerurgent message titles Pin
leckey15-May-07 4:19
leckey15-May-07 4:19 
QuestionAbout Datagrid and xml data(urgent) Pin
Wlink14-May-07 23:08
Wlink14-May-07 23:08 
AnswerRe: About Datagrid and xml data(urgent) Pin
Ch_Shahzad iqbal15-May-07 23:28
Ch_Shahzad iqbal15-May-07 23:28 
GeneralRe: About Datagrid and xml data(urgent) Pin
Wlink16-May-07 2:27
Wlink16-May-07 2:27 
QuestionI added a column to a table, but, I can't see it. Pin
furjaw14-May-07 21:49
furjaw14-May-07 21:49 
AnswerRe: I added a column to a table, but, I can't see it. Pin
Ch_Shahzad iqbal14-May-07 22:05
Ch_Shahzad iqbal14-May-07 22:05 
AnswerRe: I added a column to a table, but, I can't see it. Pin
Dave Kreskowiak15-May-07 3:46
mveDave Kreskowiak15-May-07 3:46 
GeneralRe: I added a column to a table, but, I can't see it. Pin
furjaw16-May-07 9:31
furjaw16-May-07 9:31 
GeneralRe: I added a column to a table, but, I can't see it. Pin
Dave Kreskowiak16-May-07 13:31
mveDave Kreskowiak16-May-07 13:31 
GeneralRe: I added a column to a table, but, I can't see it. Pin
furjaw17-May-07 13:27
furjaw17-May-07 13:27 
GeneralRe: I added a column to a table, but, I can't see it. Pin
Dave Kreskowiak17-May-07 15:50
mveDave Kreskowiak17-May-07 15:50 
Questionisual Studio 2005 Connection to the Server Issue Pin
R. A. Abbasi14-May-07 21:37
R. A. Abbasi14-May-07 21:37 
AnswerRe: isual Studio 2005 Connection to the Server Issue Pin
Dave Kreskowiak15-May-07 3:51
mveDave Kreskowiak15-May-07 3:51 
GeneralRe: isual Studio 2005 Connection to the Server Issue Pin
R. A. Abbasi16-May-07 1:08
R. A. Abbasi16-May-07 1:08 
GeneralRe: isual Studio 2005 Connection to the Server Issue Pin
Dave Kreskowiak16-May-07 13:29
mveDave Kreskowiak16-May-07 13:29 

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.