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
Chart exception Err.Description not reported when compiled
Hi James,
at this moment we're not sure which could be causing this difference in the error message between the design time and runtime application.
We'll continue searching for a solution to this problem.
at this moment we're not sure which could be causing this difference in the error message between the design time and runtime application.
We'll continue searching for a solution to this problem.
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi James,
for the moment this issue has not been resolved. It's down our bug/wish list but I cannot tell for sure when it will be addressed.
for the moment this issue has not been resolved. It's down our bug/wish list but I cannot tell for sure when it will be addressed.
Pep Jorge
http://support.steema.com
http://support.steema.com