ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Automation error The object invoked has disconnected from its clients.
Posted by Leanne Van Der Want on Jan-05-2006 22:48
Hi there. I'm getting the following error all of a sudden on my pages that use ChartDirector to create graphs, etc.
ChartDirector error '80010108'
Automation error The object invoked has disconnected from its clients.

Got any ideas on what is causing this or how it can be resolved?

  Re: Automation error The object invoked has disconnected from its clients.
Posted by Peter Kwan on Jan-06-2006 01:18
Hi Leanne,

First, I suggest you try to run the sample code "ChartDirector/aspdemo/simplepie.asp" on the web server. This confirms if the error happens in any code that uses ChartDirector, or just in some specific code.

If the error occurs only on some specific code, we can try to focus on the code to see what may be triggering the error. I usually suggest to comment out almost all charting code - and just leave the empty chart object - to see it still produces the error. Then we uncomment the code until we find the code that triggers the error.

Also, for testing, it is good to try hard coded data. This avoids the uncertainly in case the issue is related to the data values.

You may also email me your charting code pkwan@advsofteng.net so I may check to see if there is anything unusual.

Regards
Peter Kwan

  Re: Automation error The object invoked has disconnected from its clients.
Posted by Claudia Castro on Jan-17-2006 23:22
Hi, i got the same problem when i try to use the component.
I did what u suggest, about to try with a simplepie.asp example, but, the problem is the same:

ChartDirector error '80010108'

Automation error The object invoked has disconnected from its clients.

/forecast/graficos/prueba.asp, line 13

Please, if u can help me, i would be really thank for... because in this moment we have problems with all the applications that use this component.

Tnx a lot
Claudia
Peter Kwan wrote:
> Hi Leanne,
>
> First, I suggest you try to run the sample code "ChartDirector/aspdemo/simplepie.asp" on the web server. This confirms if the error happens in any code that uses ChartDirector, or just in some specific code.
>
> If the error occurs only on some specific code, we can try to focus on the code to see what may be triggering the error. I usually suggest to comment out almost all charting code - and just leave the empty chart object - to see it still produces the error. Then we uncomment the code until we find the code that triggers the error.
>
> Also, for testing, it is good to try hard coded data. This avoids the uncertainly in case the issue is related to the data values.
>
> You may also email me your charting code pkwan@advsofteng.net so I may check to see if there is anything unusual.
>
> Regards
> Peter Kwan

  Re: Automation error The object invoked has disconnected from its clients.
Posted by Peter Kwan on Jan-18-2006 04:07
Attachments:
Hi Claudia,

In the error message, the code file appears to be called "prueba.asp". Would you mind to confirm this is exactly the same as "simplepie.asp"? (Do not cut and paste the "simplepie.asp" to your file. Just use the "simplepie.asp" directly.)

If even "simplepie.asp" does not work,  the only explanation I can think of is either ChartDirector is corrupted, or the server is corrupted.

Anyway, you may try to use the attached "cdcheck2.asp" to see if it can produce any more error message.

You may also simply try to uninstall ChartDirector, reboot the server, the reinstall ChartDirector to see if it helps.

Please kindly let me know the result of the cdcheck2.asp test.

Regards
Peter Kwan
cdcheck2.asp
<%@ language="vbscript" %>
<%
path = Request("path")
displayPath = path
If path = "" Then
	displayPath = "c:\\Program Files\\ChartDirector\\lib"
End If
%>
<html>
<body topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">
<div style="margin:5;">
<div style="font-family:verdana; font-weight:bold; font-size:18pt;">
ChartDirector DLL Diagnostic
</div>
<hr color="#000080">
<div style="font-family:verdana; font-size:10pt;">
Please enter the location of the ChartDirector DLLs<br>
<form action="<%=Request("SCRIPT_NAME")%>">
<input name="path" value="<%= displayPath %>" size="80"> <input type="submit" value="Check DLL">
<hr color="#000080">
<%
Function CheckFile(filename)
	On Error Resume Next
	Err.Clear
	Set f = fso.GetFile(filename)
	If Not Err Then
		CheckFile = f.size
		If Not Err Then
			Set dummy = f.openAsTextStream(1)
		End If
	End If
	If Err Then
		Response.Write "Error accessing " & filename & " (Err " & Hex(Err.Number) & " : " & Err.Description & ")"
		Response.Write "<br><br>Please check that the file exists and is readable and executable by the web server anonymous user.<br><br>"
	Else
		dummy.close
	End If
End Function

Function CheckRegistry(obj)
	On Error Resume Next
	Err.Clear
	Set WSHShell = CreateObject("WScript.Shell")
	If Err Then
		Response.Write "<br><br>Err " & Hex(Err.Number) & " : " & Err.Description
	Else
		progId = WshShell.RegRead("HKEY_CLASSES_ROOT\\" + obj + "\\CLSID\\")
		If Err Then
			Response.Write "<br><br>Err " & Hex(Err.Number) & " : " & Err.Description
		Else
			Response.Write "<br><br>Registry Prog ID for " & obj & " = " & progId
		End If
	End If
End Function

Function CheckObj(obj)
	On Error Resume Next
	Err.Clear
	Set dummy = CreateObject(obj)
	If Err Then
		Response.Write "Error creating object " & obj & " (Err " & Hex(Err.Number) & " : " & Err.Description & ")"
		CheckRegistry(obj)
		Response.Write "<br><br>Please check that the DLLs comchartdir.dll, aspapi.dll and msvbvm60.dll are registered correctly in your system (use regsvr32 to manually register if necessary).<br><br>"
	End If
End Function

If path <> "" Then
	
	On Error Resume Next
	Set fso = CreateObject("Scripting.FileSystemObject")
	If Err Then
		Response.Write "Error creating FileSystemObject (Err " & Hex(Err.Number) & " : " & Err.Description & ")"
		Response.Write "<br><br>Your web server appears to be corrupted or configured incorrectly. It does not even allow a standard Microsoft COM object to be created.<br><br>"
	Else
		sizeOfCom = CheckFile(path & "\\comchartdir.dll")
		sizeOfAsp = CheckFile(path & "\\aspapi.dll")
		If fso.FileExists(path & "\\chartdir41.dll") Then
			nameOfCD = "chartdir41.dll"
		ElseIf fso.FileExists(path & "\\chartdir31.dll") Then
			nameOfCD = "chartdir31.dll"
		ElseIf fso.FileExists(path & "\\chartdir30.dll") Then
			nameOfCD = "chartdir30.dll"
		ElseIf fso.FileExists(path & "\\chartdir25.dll") Then
			nameOfCD = "chartdir25.dll"
		ElseIf fso.FileExists(path & "\\chartdir20.dll") Then
			nameOfCD = "chartdir20.dll"
		Else
			nameOfCD = "chartdir40.dll"
		End If
		sizeOfCd = CheckFile(path & "\\" & nameOfCD)
		sizeOfVB = CheckFile(fso.GetSpecialFolder(1).Path & "\\msvbvm60.dll")
	
		Call checkObj("aspapi.ChartDirector")
		Call checkObj("ChartDirector.API")
	End If

%>
	<table border=1>
	<tr><th>DLL</th><th>Size</th></tr>
	<tr><td>comchartdir.dll</td><td><%=sizeOfCom %></td></tr>
	<tr><td>aspapi.dll</td><td><%=sizeOfAsp %></td></tr>
	<tr><td><%=nameOfCD%></td><td><%=sizeOfCd %></td></tr>
	<tr><td>msvbvm60.dll</td><td><%=sizeOfVB %></td></tr>
	</table>

<% End If %>
</div>
</body>
</html>

  Re: Automation error The object invoked has disconnected from its clients.
Posted by scott on Jun-10-2011 01:22
Do you have a version of this checker for the 50 dll?  Thanks.

  Re: Automation error The object invoked has disconnected from its clients.
Posted by Peter Kwan on Jun-10-2011 02:59
Hi scott,

The latest version cdcheck5.asp is at:

http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1253938504#N1254144401

Hope this can help.

Regards
Peter Kwan

  Re: Automation error The object invoked has disconnected from its clients.
Posted by David Yarbrough on Jan-25-2006 04:16
I am experiencing this problem quite frequently as well.  I have Chart Director installed on a server, it had been working fine for about a year however in the past few months it repeatedly fails.  The fix is to uninstall Chart Director, reboot, and reinstall.  Once I was able to simply unregister and re-register the DLLs without rebooting however this does not always work.   Rebooting a production server weekly to fix Chart Director is not a satisfactory solution.

I've run the cdcheck2.asp and gotten the following back from it:

DLL Size
comchartdir.dll 1257472
aspapi.dll 81920
chartdir40.dll 1712128
msvbvm60.dll 1386496

CD Info returns the following:

ChartDirector Information

    * Description : ChartDirector

    * Version : 4.0.1

    * Copyright : Copyright (c) 2005 Advanced Software Engineering Limited

    * Boot Log :
          o 2006-01-24 08:57:43> ChartDirector at C:\\Program Files\\ChartDirector\\lib\\chartdir40.dll started
          o 2006-01-24 08:57:43> License file C:\\Program Files\\ChartDirector\\lib\\chartdir.lic: License key successfully activated

    * Font Loading Test :
          o

            ChartDirector error '80010108'

            Automation error The object invoked has disconnected from its clients.

            /aspdemo/cdinfo.asp, line 30

  Re: Automation error The object invoked has disconnected from its clients.
Posted by Peter Kwan on Jan-26-2006 01:17
Hi David,

Thanks for your detail information. The "msvbvm60.dll" in your machine is different from the one that comes with ChartDirector, but I think this should be fine. The problem seems to be related to the fonts.

I would like to confirm the following things:

1. Is it absolutely needed to "reinstall ChartDirector" to fix the problem? Can rebooting the server (without reinstalling ChartDirector) fix the problem? Is you need to "reinstall ChartDirector", that means something on the hard disk may be corrupted (such as the registry and/or the DLLs). If the problem can be solved by rebooting, then probably only the memory state of the system is corrupted.

If the problem cannot only we fix by reinstalling ChartDirector, we may need to copy the DLLs and compare to the good DLLs to see if they are corrupted. Also, we make need to take a snapshot of the registry (using regedt32 - Registry/Save Subtree As for the key HKEY_CLASSES_ROOT) in the normal state and abnormal state and compare them. (The key HKEY_CLASSES_ROOT reflects all installed software, and it should not change normally.)

2. Can the problem be fixed without rebooting the server at all, but by entering the command "iisreset" in the DOS shell? (The "iisreset" command is the most thorough way of resetting the web server without actually rebooting the server. Using the Services Control Panel to start/stop services does not actually reset the web server.) You may try this method in case the problem occurs again.

3. Is there any other software using ChartDirector other than IIS/ASP?

4. The problem as indicated by cdinfo.asp seems to relate to fonts handling. Would you mind to inform me the file size and date of the Arial font in your system (look at the windows/fonts subdirectory)? There are plenty of slightly different Arial fonts around (like any software, there are many Arial font versions for fixing bugs in the fonts), and I want to identify the exact Arail font you are using to try to reproduce the problem.

5. Would you mind to inform me the font names that are being used in your charts?

6. Would you mind to inform me which types of characters is using in the charts? Is it all ASCII text, or contains characters from other languages?

Regards
Peter Kwan

  Re: Automation error The object invoked has disconnected from its clients.
Posted by Michael Lettau on Feb-23-2008 02:22
Peter,

Did you ever find a solution to this problem?

I am having the same issue - all charts simply go dead.  I just updated the server (Win 2003 Server) and reinstalled ChartDirector.  The problem has not yet recurred, but I would rather not wait for another failure.

ML
Peter Kwan wrote:

Hi David,

Thanks for your detail information. The "msvbvm60.dll" in your machine is different from the one that comes with ChartDirector, but I think this should be fine. The problem seems to be related to the fonts.

I would like to confirm the following things:

1. Is it absolutely needed to "reinstall ChartDirector" to fix the problem? Can rebooting the server (without reinstalling ChartDirector) fix the problem? Is you need to "reinstall ChartDirector", that means something on the hard disk may be corrupted (such as the registry and/or the DLLs). If the problem can be solved by rebooting, then probably only the memory state of the system is corrupted.

If the problem cannot only we fix by reinstalling ChartDirector, we may need to copy the DLLs and compare to the good DLLs to see if they are corrupted. Also, we make need to take a snapshot of the registry (using regedt32 - Registry/Save Subtree As for the key HKEY_CLASSES_ROOT) in the normal state and abnormal state and compare them. (The key HKEY_CLASSES_ROOT reflects all installed software, and it should not change normally.)

2. Can the problem be fixed without rebooting the server at all, but by entering the command "iisreset" in the DOS shell? (The "iisreset" command is the most thorough way of resetting the web server without actually rebooting the server. Using the Services Control Panel to start/stop services does not actually reset the web server.) You may try this method in case the problem occurs again.

3. Is there any other software using ChartDirector other than IIS/ASP?

4. The problem as indicated by cdinfo.asp seems to relate to fonts handling. Would you mind to inform me the file size and date of the Arial font in your system (look at the windows/fonts subdirectory)? There are plenty of slightly different Arial fonts around (like any software, there are many Arial font versions for fixing bugs in the fonts), and I want to identify the exact Arail font you are using to try to reproduce the problem.

5. Would you mind to inform me the font names that are being used in your charts?

6. Would you mind to inform me which types of characters is using in the charts? Is it all ASCII text, or contains characters from other languages?

Regards
Peter Kwan

  Re: Automation error The object invoked has disconnected from its clients.
Posted by Peter Kwan on Feb-23-2008 05:01
Hi Michael,

Unluckily, for this case, we are not able to identify the cause of the problem.

My personal opinion is:

(a) If the problem can only be fixed be re-installation (but not by rebooting), then there must be some corruption to the hard disk.

(b) ChartDirector generally does not write to the hard disk (unless you use the makeChart API to create the chart as a file image on the hard disk).

(c) The most likely cause of the issue is that there may some other software that does write to the hard disk in the background (eg. virus scanner or other security products, indexing server, automatic backup system, etc), and this may have created unexpected interaction with ChartDirector, and corrupting the DLLs or registry entries as a result.

Unluckily, we are never able to identify the exact cause.

Regards
Peter Kwan

  Re: Automation error The object invoked has disconnected from its clients.
Posted by Michael Lettau on Feb-23-2008 05:25
We were able to "fix" the problem by stopping and restarting the web server, but only through the Application Server window of the MMC.  I have not seen any issues since I reinstalled ChartDirector and updated the server, but it's only been about a day.

I've used the product for years on several servers and this is the first time I've seen this issue.

One thing I was wondering ... in the application we're running, there are 10 charts on a single page.  Is there some pactical limit to the number of charts that could be generated at one time?  Is 10 too many - especially if multiple users are being served?

  Re: Automation error The object invoked has disconnected from its clients.
Posted by Peter Kwan on Feb-23-2008 13:37
Hi Michael,

There is no limit to the number of charts on a web page. In fact, most browsers will only load the images two at a time (that is, most browsers will only open at most two HTTP connections to a server at any time).

If the problem can be fixed by restarting the web server, then it is a memory corruption. Unluckily, in most cases, it is difficult to know the exact cause of the problem. However, from experience, re-installing the system in a "clean server" will usually solve the problem.

Regards
Peter Kwan

  Re: Automation error The object invoked has disconnected from its clients.
Posted by Erik D on May-29-2008 14:25
I use the ChartDirctor on a IIS Server. Today i have the same Problem.

I solved it with "iisreset" in a DOS Box.

thx