VB6.0 application process does not Exit under Windows 7

Sachin100

New member
Local time
7:58 PM
Messages
3
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 Computer

OS
Windows 7 Ultimate x32
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.
technet.microsoft.com/en-us/sysinternals/bb896653
 
Last edited:

My Computer

Computer Manufacturer/Model Number
HCL
OS
Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
CPU
Core 2 Duo e7400 @ 2.90GHz
Motherboard
Gigabyte G31M-ES2L
Memory
3GB DDR2
Graphics Card(s)
Asus Nvidia GTX 560Ti 1GB
Sound Card
On-board
Monitor(s) Displays
HCL eZeeBee 18.5" LCD
Screen Resolution
1366x768 @ 60Hz
Hard Drives
Western Digital 320GB
PSU
Corsair CX500 V2 500W
Cooling
Stock
Keyboard
Stock
Mouse
Stock
Internet Speed
15-25kBps D/L | 10kBps U/L | Hey Don't laugh
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 Computer

OS
Windows 7 Ultimate x32
Oh sorry, I edited the link in my previous post. Check now.
 

My Computer

Computer Manufacturer/Model Number
HCL
OS
Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
CPU
Core 2 Duo e7400 @ 2.90GHz
Motherboard
Gigabyte G31M-ES2L
Memory
3GB DDR2
Graphics Card(s)
Asus Nvidia GTX 560Ti 1GB
Sound Card
On-board
Monitor(s) Displays
HCL eZeeBee 18.5" LCD
Screen Resolution
1366x768 @ 60Hz
Hard Drives
Western Digital 320GB
PSU
Corsair CX500 V2 500W
Cooling
Stock
Keyboard
Stock
Mouse
Stock
Internet Speed
15-25kBps D/L | 10kBps U/L | Hey Don't laugh
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 Computer

OS
Windows 7 Ultimate x32
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 Computer

Computer Manufacturer/Model Number
HCL
OS
Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
CPU
Core 2 Duo e7400 @ 2.90GHz
Motherboard
Gigabyte G31M-ES2L
Memory
3GB DDR2
Graphics Card(s)
Asus Nvidia GTX 560Ti 1GB
Sound Card
On-board
Monitor(s) Displays
HCL eZeeBee 18.5" LCD
Screen Resolution
1366x768 @ 60Hz
Hard Drives
Western Digital 320GB
PSU
Corsair CX500 V2 500W
Cooling
Stock
Keyboard
Stock
Mouse
Stock
Internet Speed
15-25kBps D/L | 10kBps U/L | Hey Don't laugh
Back
Top