Results 1 to 10 of 10

Thread: Equivilent of [Resolved]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Location
    Can't say sorry :)
    Posts
    79

    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.



  2. #2
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Talking

    A complete list of these things is located here, but what you want is Me.Dispose
    ~Peter


  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Location
    Can't say sorry :)
    Posts
    79
    Thank alot



  4. #4
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    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.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Location
    Can't say sorry :)
    Posts
    79
    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.



  6. #6
    Addicted Member
    Join Date
    Apr 2004
    Location
    Lagos, Nigeria
    Posts
    215
    I think how quickly the resources [RAM] are reclaimed depends on the Gabage Collector [GC].

  7. #7
    Fanatic Member pvbangera's Avatar
    Join Date
    Sep 2001
    Location
    Mumbai, India
    Posts
    961
    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

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Location
    Can't say sorry :)
    Posts
    79
    Anyway to free up the RAM after a form is done?



  9. #9
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    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.

  10. #10
    Addicted Member
    Join Date
    Apr 2004
    Location
    Lagos, Nigeria
    Posts
    215
    You're right nemaroller!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width