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
Exception code 0xc0000005 when exit 64bit music application
Hello forum, Since recently, exiting the Cubase 6 64bit result in application crash with Exception code 0xc0000005 in the event log: ---------------------------- Felet uppstod i programmet med namn: Cubase6.exe, version 6.0.7.364, tidsstämpel 0x4f5f87dc , felet uppstod i modulen med namn:...
General Discussion
BSOD every time I exit Windows 7
Getting a BSOD every time Windows shuts down. Looks to me like it is related to the graphics card driver being out of date, so I attempt to install the newest driver from AMD web site. When installer reaches driver to install, instantly causes a BSOD. Have gone through AMD's instructions on how to...
BSOD Help and Support
Unknown application cant End Process prevents pc from shutting down
On my Task Manager theres an application that sometimes changes name "work" or"sleep" that prevents my pc from shutting down that i have to press "Force shut down" button when shutting down my pc. Im using Windows 7, this application cannot be End Process,The logo is like three different squares...
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
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


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 11:07.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App