Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Free Memory

What is the best way to free memory in visual basic code after running an application..??


Comments

  • To unload forms with 'Unload' statement. But I think there is a better way to free memory in VB. simply now I can't remember another one.





  • : What is the best way to free memory in visual basic code after running an application..??


    Refer to the Set Statement in VB Help.

    Set Form1 = Nothing

    Set Form2 = Nothing

    etc.

    Assigning Nothing to objectvar releases all the system and memory resources associated with the previously referenced object when no other variable refers to it.





  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    _______ ( http://forcoder.org ) free ebooks and video tutorials about { Ruby, C#, Perl, Visual Basic, Scratch, R, C, Go, MATLAB, Python, Visual Basic .NET, Java, Assembly, JavaScript, Delphi, Swift, C++, PHP, Objective-C, PL/SQL Lisp, Julia, Ada, Apex, Erlang, Rust, Scala, Bash, Transact-SQL, Clojure, COBOL, Dart, LabVIEW, Crystal, ABAP, Kotlin, Logo, VBScript, Fortran, Hack, ML, Prolog, SAS, Scheme, F#, FoxPro, Alice, Lua, Awk, D } _

Sign In or Register to comment.