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 for2: VB6.0 application process does not Exit under Windows 7
Thread Forum
Windows 7 + Process Explorer + Patch: [Opening error process] Installation & Setup
Solved Exit Windows sound will not accept my wav file Sound & Audio
Solved explorer.exe - fatal application exit General Discussion
Windows Media Player exit delay 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 08:27 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App