bugs >> "the object invoked has disconnected from" using intrinsic grid ct

by QnJhZCBBc2hmb3J0aA » Tue, 23 Oct 2007 04:16:02 GMT

We have suddently started getting this error. We have the following code
snippet:

grd.Col = 1: grd.Text = rs.Fields("WR_VesselID").Value
grd.Col = 2: grd.Text = Trim(cboVessel.Text)
grd.Col = 3: grd.Text =
Format(NVL(rs.Fields("WR_SumInsured").Value, 0), "#0.00000")
grd.Col = 4: grd.Text = rs.Fields("WR_WarRiskZone").Value
grd.Col = 5: grd.Text = NVL(rs.Fields("WR_DateIn").Value, "")
grd.Col = 6: grd.Text = NVL(rs.Fields("WR_TimeIn").Value, "")
grd.Col = 7: grd.Text = NVL(rs.Fields("WR_DateOut").Value, "")
grd.Col = 8: grd.Text = NVL(rs.Fields("WR_TimeIn").Value, "")
grd.Col = 9: grd.Text = NVL(rs.Fields("WR_Rate").Value, "0.00000")
grd.Col = 10: grd.Text = NVL(rs.Fields("WR_Debit").Value,
"0.00000")
grd.Col = 11: grd.Text = NVL(rs.Fields("WR_Discount").Value,
"0.00000")
grd.Col = 12: grd.Text = NVL(rs.Fields("WR_Credit").Value,
"0.00000")
grd.Col = 13: grd.Text = NVL(rs.Fields("WR_Net").Value, "0.00000")
grd.Col = 14: grd.Text = IIf(NVL(rs.Fields("WR_Paid").Value, 0)
<> 0, "Yes", "No")

Stepping through the code, we will get a few lines in and then it will fail
with the msg "the object invoked has disconnected from one of its clients".
The rs object uses ADO and on the failed row I can hover over the
rs.fields(<colname>).value and it will correctly display what I'd expect to
see. Similarlly I can check it's value in the immediate window without error.
But it will fail when trying to set grd.text the value. I did an internet
search for "the object invoked has disconnected from" and found several posts
on the subject, none seem to apply. The form in question DOES use a date/time
picker and I had seen a post blaming mscal.ocx and when checked I did find
that the mscal.ocx in my Office10 folder WAS newer ... but it made no
difference. Please help if you can ... Thank you in advance.
--
Brad Ashforth


bugs >> "the object invoked has disconnected from" using intrinsic grid ct

by Jan Hyde (VB MVP) » Tue, 23 Oct 2007 16:01:20 GMT


Brad Ashforth < XXXX@XXXXX.COM >'s wild thoughts were
released on Mon, 22 Oct 2007 13:16:02 -0700 bearing the
following fruit:


What is the source property of the error object?

Check the errors collection of your recordset to eliminate
that as a possibility.

Can you set the text property in the immediate window once
the error occurs?


https://mvp.support.microsoft.com/profile/Jan.Hyde



Similar Threads

1. "the object invoked has disconnected from" using intrinsic gri

2. Automation error( object invoked has disconnected from its clients)

HI..

We have a VB 6 application (SP5)... running successfully on XP workstation. 
When I run the same application on Win 2000 server. I get a Automation Error 
message -2147417848 ( The object invoked has disconnected from its clients)

I was able to trace the exact location of this error message. It happens at 
the following code

*******
' Picture3 is a Image control
FillPictureFromDisk LogoFileName, Picture3, 0.4, 0.1, vbBlack


Private Sub FillPictureFromDisk(FileName$, ToPic As Control, ByVal vertloc#, 
ByVal HorLoc#, Colorname As String)

' Passing Image control in the ToPic Control
' Pictemp is a imageknife control
ToPic.Picture = Pictemp.Picture

' I get error message after this assignment


End Sub
******

I tried compiling to P-code and Native-code.But I still get the same error.
I would appreciate if somebody can assist me getting this resolved.


Sameer

3. The object invoked has disconnected from its clients - UltraGrid / VB6

4. the object invoked has disconnected...

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am currently getting this error on only one of my newly created
servers.  The error shows up and I notice that it has killed the rest
of my COM+ componantes.  The problem is, the servers are going into a
production environment soon.  My other server works fine, and does
not get this error.  According to all the articles this error has
been fixed in Win2k sp3.  I am running on sp4.  Anyone have any
suggestions....?

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.2

iQA/AwUBPzkbEUHxCdI8f75rEQIAkQCg/3rKVTIjBKxgd8QuCKGkOE1g7yUAnR8m
4mhUAyZBunvx74GGtoWDY1e3
=Bz7e
-----END PGP SIGNATURE-----


5. Automation error (object invoked has disconnected from its clients)

6. Automation Error - the object invoked has been disconnected from its

Hi,

I have developed an application using VB 6, Access 2000 and Crystal
Reports 9.
I am using the crystal report activex control. At the time of printing
any report, it gives me the following error:

Automation Error - the object invoked has been disconnected from its
client.

I checked on the CR website and they did provide a solution for
version 8.5, saying it was a known bug and the crystl32.dep file had
to be modified. But in CR 9, there is no such file nor any solution
provided.

Please let me know what the problem could be and  the solution too.

Thanks
Jatin

7. Automation error - The object invoked has disconnected from its clients

8. ERROR: the object invoked has disconnected from its client

Hello,
My application runs great, but some times, some functions 
fail with error: "the object invoked has disconnected from 
its client"

It sounds to me like I lose connection to my SQL 7.0 
Server or ODBC. Or I re-set something without closing it 
first. This never happens in the same place nor all the 
time.

I'm running NT Server SP6 and in the same machine SQL 7.0 
SP3.

Please help,

Carlos