1,105,625 Community Members

VB6 program won't END

Member Avatar
MichaelRyan
Newbie Poster
2 posts since Dec 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi folks...get into the wayback machine. :) I have a VB6 program I'm drastically modifying due to vendor API changes. This isn't my natural language, so I have to hack around every time I change things. Problem now is that the program won't end. I know it hits the END statement, but it just stays running. I can see it in Task Manager. I don't think it's consuming any additional CPU or memory. I think I may have some object open. Is there a programmatic way I can iterate through a list of all my open things so I can print the names? That might help me figure out what I'm doing wrong. Thanks!

Member Avatar
MichaelRyan
Newbie Poster
2 posts since Dec 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Found my problem...sure enough, wasn't closing this new object. If anyone knows how to determine all open objects, I'd still appreciate that information. Thanks!

Question Self-Answered as of 9 Months Ago
Member Avatar
GeekPlease
Junior Poster
109 posts since May 2013
Reputation Points: 16 [?]
Q&As Helped to Solve: 8 [?]
Skill Endorsements: 0 [?]
 
0
 

Try this bro ..

            Dim proc As System.Diagnostics.Process
            For Each proc In System.Diagnostics.Process.GetProcessesByName("EXCEL")
                proc.Kill()
            Next

Just change EXCEL. Put the application that still running. Hope it helps.

You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: