Click here to Skip to main content
15,885,435 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB.NET Connect to Server Pin
Socheat.Net17-May-07 0:05
Socheat.Net17-May-07 0:05 
QuestionHow to get Drive label (Volume Label) Pin
Zaegra16-May-07 20:33
Zaegra16-May-07 20:33 
AnswerRe: How to get Drive label (Volume Label) Pin
Sonia Gupta16-May-07 20:44
Sonia Gupta16-May-07 20:44 
GeneralRe: How to get Drive label (Volume Label) Pin
Vimalsoft(Pty) Ltd16-May-07 20:53
professionalVimalsoft(Pty) Ltd16-May-07 20:53 
GeneralRe: How to get Drive label (Volume Label) Pin
Zaegra16-May-07 21:48
Zaegra16-May-07 21:48 
QuestionHow to get Drive Label (volume label) Pin
Zaegra16-May-07 20:31
Zaegra16-May-07 20:31 
AnswerRe: How to get Drive Label (volume label) Pin
Dave Kreskowiak17-May-07 4:34
mveDave Kreskowiak17-May-07 4:34 
QuestionGarbage collector Pin
Sonia Gupta16-May-07 19:53
Sonia Gupta16-May-07 19:53 
Hi there
i have two forms named form1 and form2 two class files named class1.vb , class2.vb

now in class1 the code is as follows
class class1
protected overrides sub Finalize()
mybase.Finalize
End Sub
end class

class2 code is as follows
class class2
protected overrides sub Finalize()
mybase.Finalize
End Sub
end class

In form1 i am writing the following code
Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
dim d1 as new form2
d1.show
End Sub
End Class

In form2 i am writing the following code
Public Class Form2

Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

dim d1 as new class1

End Sub
End Class


The startup page is form1

At form1 loads i am getting form2 automatically.
now i am closing the form2 .

Now
at the form2 closing event i am writing the following code.
GC.Collect
even this is not realeasing the class2 object memory.
Why is this happening?

I know ............

The Finalize method does not run when the object goes out of
scope. At that point, the object is simply not used any more but
the program doesn't destroy it.

Instead the program just ignores it until it starts to run out of
memory and it needs to perform garbage collection. Then it scans
all of the objects that the program has been using and
determines which ones are no longer in use. Only then does it
call the object's Finalize method


AnswerRe: Garbage collector Pin
Christian Graus16-May-07 20:55
protectorChristian Graus16-May-07 20:55 
GeneralRe: Garbage collector Pin
Dave Kreskowiak17-May-07 4:37
mveDave Kreskowiak17-May-07 4:37 
AnswerRe: Garbage collector Pin
Dave Kreskowiak17-May-07 4:29
mveDave Kreskowiak17-May-07 4:29 
Questionsource code to convert wav File to MP3 File in vb.net. Pin
Fujiwara Gili16-May-07 19:38
Fujiwara Gili16-May-07 19:38 
AnswerRe: source code to convert wav File to MP3 File in vb.net. Pin
Sonia Gupta16-May-07 21:30
Sonia Gupta16-May-07 21:30 
QuestionModal Dialog That will lock system Pin
Polymorpher16-May-07 19:35
Polymorpher16-May-07 19:35 
AnswerRe: Modal Dialog That will lock system Pin
Sonia Gupta16-May-07 21:56
Sonia Gupta16-May-07 21:56 
GeneralRe: Modal Dialog That will lock system Pin
Polymorpher17-May-07 8:48
Polymorpher17-May-07 8:48 
QuestionCreate a User Defined Control in VB Pin
Xandip16-May-07 19:19
Xandip16-May-07 19:19 
AnswerRe: Create a User Defined Control in VB Pin
Christian Graus16-May-07 19:32
protectorChristian Graus16-May-07 19:32 
GeneralRe: Create a User Defined Control in VB Pin
Xandip16-May-07 19:48
Xandip16-May-07 19:48 
GeneralRe: Create a User Defined Control in VB Pin
Christian Graus16-May-07 20:56
protectorChristian Graus16-May-07 20:56 
AnswerRe: Create a User Defined Control in VB Pin
Sonia Gupta16-May-07 19:58
Sonia Gupta16-May-07 19:58 
Question1 Computer to another computer Pin
Socheat.Net16-May-07 18:57
Socheat.Net16-May-07 18:57 
AnswerRe: 1 Computer to another computer Pin
Christian Graus16-May-07 19:04
protectorChristian Graus16-May-07 19:04 
GeneralRe: 1 Computer to another computer Pin
Socheat.Net16-May-07 21:01
Socheat.Net16-May-07 21:01 
QuestionRe: 1 Computer to another computer Pin
Sonia Gupta16-May-07 23:09
Sonia Gupta16-May-07 23:09 

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.