Hi,

I use the following code to clear my memory,

Public Sub EndProgram()

'must use this to clear memory I have used
     Dim frm As Form

     For Each frm In Forms
          Unload frm
          Set frm = Nothing
     Next frm

End Sub

See, if it works or not.

Shahidul Alam

--- HouseDad <[EMAIL PROTECTED]> wrote:

> 
> Shawn,
> Thanks a lot for your enlightening reply to my
> message.  As all my 
> programs up to this point have mainly been single
> form programs 
> without a sub main I am surprised that I haven't had
> more problems up 
> until now.
> 
> This is the code I am using when a user exits the
> program (single 
> form program without a sub main): 
> 
> unload me
> end
> 
> The program seems to unload ok but I found about a
> dozen explorer.exe 
> in the task manager later after I noticed I couldn't
> click on 
> shortcuts and what-not on the desktop.  I don't know
> if this is 
> related or not.  Is the best solution to implement a
> sub main and 
> then unload the form, the set the form = nothing,
> then end (since the 
> sub main won't have a form)?
> 
> 
> Thanks a million!> 



                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250



'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [email protected]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to