Link to home
Start Free TrialLog in
Avatar of sjmmajor
sjmmajor

asked on

Program not responding

I am quite bewildered.  I have an VB6 app with around 35 forms connected through ADO to Access 2000 database on a server.  This app is on around 15 computers.  It has been running for about 6 months but all of a sudden I am getting the error message at the top saying Program not responding and then it will respond.  I thought maybe it was my connection timeouts but I haven't changed anything and I adked for clarity on this in a earilier question.  Every now and then I did notice a slow response to bringing up a form like it hangs and then brings up the form.

Any suggestions on where to look?  
Avatar of Mikal613
Mikal613
Flag of United States of America image

VB6 has a major memory leak that wasnt fixed vb6 apps needs a restart here and there .NET fixed this problem
Avatar of sjmmajor
sjmmajor

ASKER

If I change this app to Net, how much code would I have to change?  

Is there any way to identify if a memory leak is happening?
well .net is a whole language change its not just snippets
Its not easy to see but if you want you can pull up the Task Manager Alt + Ctrl + Dlt + T

And watch your app's memory usage
It could be a problem with network traffic.
I would not be surprised if your Access databases have been growing and the response time from queries is now really slow.  Take a look at the amount of records in the tables in your database and make sure that you have everything indexed properly.

Do you notice that it stops responding temporarily during specific operations, or is it completely random?
maybe the program is going into some kind of long or big loop
if so try adding

DoEvents

inside the loop
it will help alot but you have to be careful when u use it.
Egore has a clue for sure!
In addition to Egore's comment how often do you compact/repair the database?

Also how big is the database?

dragontooth

SOLUTION
Avatar of srimanth
srimanth

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have seen situations where both client & server are scanning the database records.
Sorry I didn't get back sooner.  So far there isn't a whole lot of records.  I have been maintaining this daily until I finish the procedures for backing up the data to a historical database for reporting usage.  I was thinking about the compacting and repairing.  I copied one of the databases to another computer for testing and thinking about it, it starting happening after that.  I did check the usage of the cpu and it isn't much.  Your right about the stored procedures so almost everything is done on the client side.  I will check the virus protection again.  I thought I had already turned it off due to slow response.

I will get back with all in a couple hours.  I will test and check all your comments and let you know.  I also have a meeting.  Thanks for all the responses and I will let you know what I find.
It turned out to be the size.  I didn't realize that when you delete data the file does not get smaller.  Also thanks to virus.  I didn't have it on but it did confirm what I thought about virus scans.