|
-
Aug 2nd, 2004, 02:36 PM
#1
Thread Starter
Lively Member
Equivilent of [Resolved]
what is VB.Net (I use VB 2005 which is supposivly .Net) equivilent to VB6's Unload Me function?
Last edited by Word2; Aug 2nd, 2004 at 04:16 PM.
-
Aug 2nd, 2004, 03:55 PM
#2
Frenzied Member
A complete list of these things is located here, but what you want is Me.Dispose
~Peter

-
Aug 2nd, 2004, 04:15 PM
#3
Thread Starter
Lively Member
Thank alot
-
Aug 2nd, 2004, 07:06 PM
#4
PowerPoster
Hi,
I understood that
Me.Close
was more efficient than
Me. Dispose,
as Close includes Dispose and also releases all the forms resources.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Aug 2nd, 2004, 08:37 PM
#5
Thread Starter
Lively Member
And by resources I hope you mean RAM. But I myself watched in the Task Manager. And when a new form was loaded 700KB went up.
But when I clicked exit (Me.Dispose) it stayed the same.
-
Aug 3rd, 2004, 08:47 AM
#6
Addicted Member
I think how quickly the resources [RAM] are reclaimed depends on the Gabage Collector [GC].
-
Aug 3rd, 2004, 09:16 AM
#7
Fanatic Member
It depends on which controls you have on your form. For eg. number spinner control, etc. dont get disposed automatically with Garbage collector. Hence the form also is not disposed as it still have control(s) on it. Hence, the form remains in Memory.
Regards
-
Aug 3rd, 2004, 07:04 PM
#8
Thread Starter
Lively Member
Anyway to free up the RAM after a form is done?
-
Aug 3rd, 2004, 09:43 PM
#9
I wonder how many charact
I'm no expert in writing Garbage collectors....
but from everywhere I have read... they all say this:
Don't try to outguess the compiler AND Don't try to outguess the garbage collector.
Basically, YOU don't have to do anything to reclaim the RAM, let the GC worry about it. When the system needs it, it will get it.
-
Aug 4th, 2004, 02:45 AM
#10
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|