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!

How do I find out what is causing an exception?

Status
Not open for further replies.

cathym

Programmer
Jul 17, 2002
25
US
I wrote a com in vc++ to execute an excel spreadsheet every minute. This spreadsheet also uses an add-in that is a DDE link. It works well, except that intermittently I get an excel unknown exception, and excel terminates. This happens ever 1 to 2 hours.

Does anyone know how I can find out what is causing this exception so I can fix it?
 
Try to put OutputDebugStrings on the line...and use DebugViewer software to view those outputs, which u can get from sysinternals.com.
And about excel exception..i think u r not releasing any resources from excel...that may be causing exception at excel end.
Please read about the calls in excel automation carefully, and verify all the requirements.


Rahul Gade If you think you can't do it,You will never be able to do it.
 
Hello cathym.

Hum.. I agree with RahulGade. It looks like you are not freeing something.

Regards.

Polu Nacho Vargas.
Consultant.
D.M.R. Consulting (a Fujitsu Company)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top