Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: VB6.0 application process does not Exit under Windows 7

24 Apr 2012   #1
Sachin100

Windows 7 Ultimate x32
 
 
VB6.0 application process does not Exit under Windows 7

My VB6.0 application process does not Exit under Win 7 but it exits properly on Win XP. After exiting the application process VB6 exe remains running in Task Manager. So every time I need to manually end that process. Is there any way to release all resources held by VB6.0 exe & VC++ dlls on Win 7 OS through VB6/C++ code.


My System SpecsSystem Spec
.

24 Apr 2012   #2
EzioAuditore

Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
 
 

One way i can think of is to create a batch file and pin it to taskbar. Save your work and click the pinned item to terminate it.
Code:
taskkill /im /f <insertprocessnamehere>
You can also use Process Explorer to see, after closing normally, which files (dll's etc) remain loaded by the program's process to identify the conflicting ones.
http://technet.microsoft.com/en-us/s...rnals/bb896653
My System SpecsSystem Spec
24 Apr 2012   #3
Sachin100

Windows 7 Ultimate x32
 
 

Thanks Ezio..Earlier I used taskkill option..but as per code review comments-"do not use taskkill option" so I am exploring other options to release the resources.

I think Dlls are not unloading properly & holding the resources thatswhy Exe is running in background. If I tried to explicitly unload Dll, then application hangs & do not close.

your link displays
Error. Page cannot be displayed. Please contact your service provider for more details. (6)
My System SpecsSystem Spec
.


24 Apr 2012   #4
EzioAuditore

Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
 
 

Oh sorry, I edited the link in my previous post. Check now.
My System SpecsSystem Spec
26 Apr 2012   #5
Sachin100

Windows 7 Ultimate x32
 
 
Solved!!

Thanks Ezio..first I used Process Explorer and I found some of the Dlls were not released. so to localise the problem I used Dependency Walker tool. I observed that application control stuck at one of the Dll and was not moving ahead and releasing other resources.

Finally, I sent a call to that Dll to release the resources and it worked. I dont know exactly what's difference in Win 7 and Win XP at Dll level where Win 7 was not releasing the Handles of the Dll which Win Xp does.
My System SpecsSystem Spec
26 Apr 2012   #6
EzioAuditore

Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
 
 

Quote   Quote: Originally Posted by Sachin100 View Post
Thanks Ezio..first I used Process Explorer and I found some of the Dlls were not released. so to localise the problem I used Dependency Walker tool. I observed that application control stuck at one of the Dll and was not moving ahead and releasing other resources.

Finally, I sent a call to that Dll to release the resources and it worked. I dont know exactly what's difference in Win 7 and Win XP at Dll level where Win 7 was not releasing the Handles of the Dll which Win Xp does.
Thats a great news. Glad its solved.
Windows has come a long way down from XP to 7 both in features and working. If you notice any program behaving erratically, try running it in Compatibility Mode.
My System SpecsSystem Spec
Reply

 VB6.0 application process does not Exit under Windows 7




Thread Tools





Similar help and support threads
Thread Forum
Windows form: Exit automatically after end video files
I apologize for my English I thank you in advance for your attention. How to Do (register? Visual basic? ....) For: 1) start a short movie when you start Windows, but before it opens the desktop screen; 2) the movie ends; 3) closes the window 4) opens the desktop screen
General Discussion
Windows 7 + Process Explorer + Patch: [Opening error process]
Hi fooks, I hope you all can read this, i'm from Belgium so my Englsich is not as good as it might be. I have bought last year a little notebook with Windows 7 Home Premium on it. On this machine i am the Administrator, and there are no other people on that, or guestaccounts made. On...
Installation & Setup
Exit Windows sound will not accept my wav file
I have an exaggerated goodbye wav file (on exit windows) that I have been using for over 10 years with many WinXP computers.(recorded Sept. 01 2001) I am a very late adopter and just sprung for a HP Z1 workstation with Win7 pro. The only real problem I had with Win7 was getting my Microsoft...
Sound & Audio
explorer.exe - fatal application exit
I downloaded a taskkill shortcut from a stumbleupon site. Now whenever i right click on an icon a window pops up saying explorer.exe - fatal application exit. When I try to click ok the mouse curser goes under the window. I have to use task manager to end it. I used Revo uninstaller to get rid of...
General Discussion
Windows Media Player exit delay
Hello, I am sure this isn't too serious, but it's irritating:cry: Whenever I want to exit/close windows media player, there's a short delay, then the window disappears after about 1.5 - 2 seconds. It used to close instantly! I've made and uploaded a GIF animation of what happens here:...
Music, Pictures & Video

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:14.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App