Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automation Error (440) wiht ADO Control & DataGrid

Status
Not open for further replies.

JohnBates

MIS
Feb 27, 2000
1,995
US
Hello -
I am using VB6 against a SQL Server 7 db.

This is a very simple program whereby the datagrid is populated by Adodc1 without any VB code.

I added a Timer control to refresh the data grid every 10 seconds (Adodc1.Refresh) This works very well.

Problem: The program runs fine, refreshing the grid periodically.... then after running for several minutes (seems to always be about 4 - 5 minutes) get the run-time error Automation error (error 440)

The documentation for Error 440 says -" An error occurred while executing a method"

Well, the only method being executed is the .Refresh

I can only guess that there may be a Timeout problem occurring or the SQL Server db is too busy to respond...?

Has anyone had experience with Automation errors?
Thanks for any help.
John
 
more info...

The error text is "Automation Error (error 440). The object
invoked has disconnected from its client." Then a second
error "The memory at ....... address could not be read"

When the Timer's Refresh interval is set to 5 secs,
the pgm gives this error after running for 4 minutes.

When the Timer's Refresh interval is set to 10 secs,
(twice as long) the pgm gives this error after running for 8 minutes. Seems that there is a relationship between
the refresh interval and how long the pgm runs before
getting the error..... but I'm not sure what it is.


Just a thought: Each refresh reads the Top 40 records.
Could memory be getting filled up after X number of Refreshes??

John
 
John did you ever find a solution for this issue..I'm suffering from the same problem...if you can help please let me know.

Thanks!!
 
hi krill - I will try to find my notes to determine how I solved this one. I remember it was easy though.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top