Excel with ActiveX causes memory cannot be read error

We have an Excel VBA application which sends data to webMethods EI thru an ActiveX control. Everything seems to work well, except when Excel is closed.

excel.exe - Application Error
The instruction at X referenced memory at Y. The memory could not be “read”. Click on OK to terminate the program.

It seems that once a connection has been made to the broker, Excel will give an error message when the program is closed. You do not get the error when you close the worksheet, just the Excel program itself.

We have double-checked to make sure that the connection objects are properly destroyed in VBA.

Ideas?

Thank you in advance!

I found the same problem on Delphi 5