If, as you say the program only has a sub main, then basically everything is Global. There is most probably an object reference that is not being cleared. But as I said before, some code would help a lot. You could try putting a couple of DoEvents statements at the end of the Sub, to allow processing to complete, or even call the sleep API and wait for a bit before you allow the sub to exit. This might fix the problem, if it is related to timing.
Matt ----- Original Message ----- From: "Daniel Magliola" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 23, 2004 12:42 AM Subject: RE: [vbhelp] Program not ending correctly > Could this be a global collection that's holding it active in memory? > Something else I find strange is that sometimes it stays resident, and > sometimes it closes out perfectly... > > > -----Mensaje original----- > > De: Unicorn.PC.Support [mailto:[EMAIL PROTECTED] > > Enviado el: Tuesday, June 22, 2004 12:05 > > Para: [EMAIL PROTECTED] > > Asunto: Re: [vbhelp] Program not ending correctly > > > > > > I would suggest, that you have an object that is not being set to nothing. > > A prime candidate would be word, if the program involves > > automation of word. > > It is rather difficult to actually get to go away some times. > > > > If this is a little proggie as you suggest, it might be an idea to put the > > code from the sub main out here for us to see. Trying to diagnose > > a problem > > with code without knowing anything at all about the program or the code is > > next to impossible. > > > > Matt > > > > > > > > > > > > '// ======================================================= > > 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 > > > > > > > > > > > > > > > > > > '// ======================================================= > 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 > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/k7folB/TM --------------------------------------------------------------------~-> '// ======================================================= 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/
