views:

141

answers:

1

I have vb6 apps that runs without any problems for hours on vista/32/64 or win7/32/64 and Xp32/64 machines. It sometimes hang in XP machines but I can just close the app in Task Manager then restart without any problems. Now with Vista/Win7, it still hangs after several hours then I close the apps with Task Manager then restart the app. App will start but will hang at the same app location just as if it remembered where it hang before. The only way to bring the App back is to reboot the computer.

Did anyone experienced this before? I know this vb6 apps could be doing bunch of junk and not releasing memory and etc. But if i close the app in Task Manager, shouldn't it come back as before?

Thanks for any help

A: 

It sounds like it might be hanging somewhere in VBRUN6.DLL, the Visual Basic 6 Runtime Library, which would explain the need to reboot, since the DLL is not unloading. I have no clue about what your app is doing to cause this, though. And I fear that any such analysis here on SO is going to be out of scope, unless the program is trivially simple.

Robert Harvey
I agree. Nowhere near enough detail provided and it sounds as if it can happen on almost any version of Windows.
Bob Riemersma
I know.. Hard to provide detailed info as it is not a simple program. Very complicated plant control program. My suspect at the moment is Data Access: it is using RDO 2.0 to access SQL2005/2008 servers.Fact that it "worked-Taskmanager Kill-restartApp" prior to Vista is what i am trying to get at. It does run in Vista+.. Just when it hangs, i can not restart w/o reboot.
CH
If this is a mission-critical program, it might make sense to rewrite it in a more modern venue...say VB.NET, Winforms and ADO.NET.
Robert Harvey
Microsoft's support statement for vb6 is here: http://msdn.microsoft.com/en-us/vbrun/ms788708.aspx
Robert Harvey