Chart exception Err.Description not reported when compiled
Posted: Wed Sep 19, 2007 2:42 am
I have found that the VB6 Err.Description property is not set for exceptions raised by the chart library when running a project that is compiled to native code. I am running ActiveX chart library v7.0.1.4. The same exception Err.Description property is set when running from the VB6 IDE.
In the IDE, I generated an error by running the following code:
On Error Goto errorhandler
TChart.Tools.Items(aValidIndex).asNearest.Series = -1
errorhandler:
MsgBox Err.Description: Method 'Series' of object 'INearestTool' failed.
I compiled the project and ran the same procedure to generate an identical error and I got:
errorhandler:
MsgBox Err.Description: Method '~' of object '~' failed
Why does the Err.Description property not get set when running from a compiled project?
Thanks in advance for your assistance.
- James
In the IDE, I generated an error by running the following code:
On Error Goto errorhandler
TChart.Tools.Items(aValidIndex).asNearest.Series = -1
errorhandler:
MsgBox Err.Description: Method 'Series' of object 'INearestTool' failed.
I compiled the project and ran the same procedure to generate an identical error and I got:
errorhandler:
MsgBox Err.Description: Method '~' of object '~' failed
Why does the Err.Description property not get set when running from a compiled project?
Thanks in advance for your assistance.
- James