Jim,

That reminds me... Cfmx introduced the "releaseComObject()" function to help
with this problem.

-Mark
 

-----Original Message-----
From: Jim Wright [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 11, 2006 10:23 AM
To: CF-Talk
Subject: Re: Query regarding COM objects

On 5/11/06, sunil kumar <[EMAIL PROTECTED]> wrote:
> Hi all,
>      In our application we have a process of generating letters(word
documents) and we are getting the following COM object problem.
>
>   An Exception Occured when accessing a COM object feild. The cause of
this exception was that: AutomationException:0x800a16c1 - Object has been
deleted.in "Microsoft Word".
>
>     Can any one please help me in solving this?


COM errors can be pretty tough to debug, especially when dealing with
automating office.  Here are a few recommendations:
1.  Make sure you have followed Microsoft's directions in setting up an
Office application for server side automation.
here are a couple of references...
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757
http://support.microsoft.com/kb/288367/
2.  Reproduce what you are doing in VBA, and try to run it as a macro in
Word on the server...you may encounter errors that you didn't anticipate.
3.  Try to make sure that only one Word process is running at a time.
I've had bad luck with multiple excel processes trying to produce reports at
the same time, and had to implement my own locking mechanism to limit it to
one process.  Also, sometimes the processes you spawn are not easy to clean
up...I've made good use of sysinternals pskill.exe utility to get rid of
orphan Word and Excel processes.

--
Jim Wright
Wright Business Solutions
[EMAIL PROTECTED]
919-417-2257



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240218
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to