Sachin

New Member
Joined
Apr 20, 2012
Messages
2
My VB6.0 application process does not Exit under Windows 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. Any way to release all resources held by VB6.0 Exe & VC++ Dlls on Win 7 OS. thanks.
 

Solution
When encountering issues with a VB6.0 application not properly exiting and leaving the process running in Task Manager on Windows 7, while it exits properly on Windows XP, there are a few potential reasons and solutions to consider:

Troubleshooting Steps:​

  1. Check for Errors in Code: Ensure that there are no errors or exceptions occurring during the application exit process that might prevent it from closing cleanly.
  2. Proper Resource Release: Manually release all resources that the application is using before exiting. This includes closing all files, releasing memory, and disconnecting from any external resources like databases or network connections.
  3. Compatibility Mode: Try running the application in...
When encountering issues with a VB6.0 application not properly exiting and leaving the process running in Task Manager on Windows 7, while it exits properly on Windows XP, there are a few potential reasons and solutions to consider:

Troubleshooting Steps:​

  1. Check for Errors in Code: Ensure that there are no errors or exceptions occurring during the application exit process that might prevent it from closing cleanly.
  2. Proper Resource Release: Manually release all resources that the application is using before exiting. This includes closing all files, releasing memory, and disconnecting from any external resources like databases or network connections.
  3. Compatibility Mode: Try running the application in compatibility mode for Windows XP. Right-click on the application executable, go to Properties, and then to the Compatibility tab to set the compatibility mode.
  4. Task Manager End Process: Instead of manually ending the VB6 process in Task Manager each time, you could create a script or a small utility that monitors the process and automatically terminates it upon app exit.
  5. Debug Mode: Run the application in debug mode to see if there are any specific errors or warnings during the exit process that might provide clues on why it's not closing properly.
  6. Update/Reinstall Runtime Dependencies: Ensure that both VB6.0 runtime components and any VC++ DLLs the application is using are up to date and correctly installed on the Windows 7 system.

    Additional Tips:​

    • Make sure there are no background threads or processes that are preventing the application from exiting.
    • Check the event logs in Windows 7 for any specific error messages related to the application's exit behavior.
    • Consider recompiling the VB6.0 application on Windows 7 to ensure compatibility with the newer operating system.
    By following these steps and considering the suggestions mentioned, you should be able to address the issue of the VB6.0 application not properly exiting on Windows 7.
 

Solution
Back
Top