Export to XML Exceptions thrown

TeeChart for ActiveX, COM and ASP
Post Reply
AR
Newbie
Newbie
Posts: 9
Joined: Wed Dec 01, 2004 5:00 am

Export to XML Exceptions thrown

Post by AR » Wed Apr 06, 2005 1:10 pm

I am exporting a data file as XML uisng

HRESULT hr = m_Graph->Export->asXML->SaveToFile(FullPathAndFilename);

This is protected inside a Try / Catch block to prevent exceptions being propogated outwards.

The problem is that should the save fail for reasons such as Disc full, Disc write protected, Access Denied etc the only exception I get passed back is
E_UNEXPECTED

This doesnt give me enough detail as to why the save failed, I was wondering if there was a way to recover the reason the save failed.
The only steema example I have found for VC just deletes the exception if its thrown without attempting to analyse it.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Apr 11, 2005 10:23 pm

Hi,

maybe the problem is that there're some invalid characters in the captions. Would you be so kind to post a simple example into the news://steema.net/steema.public.attachments newsgroup with which we can reproduce "as is" the problem here ?

Post Reply