[vtkusers] Setting the axis titles in vtkChartXY

Gishara Indeewarie gish.777 at gmail.com
Tue Mar 20 01:33:37 EDT 2012


Thanks  Frese . I linked vtk debug version to debug-compiled app and
release version to release-compiled app and now it is working fine.
Thanks again.

On Mon, Mar 19, 2012 at 5:34 PM, Frese Daniel Dr. <frese at heidenhain.de>wrote:

> Hi,****
>
> ** **
>
> some time ago I had the same/very similar issues (setting axis title in a
> chart); just can’t find the exact mailing list reference right now.****
>
> The point is, that mixing release/debug stuff with Microsoft Visual Studio
> is always unsafe and not recommended (the Microsoft docs explicitly advise
> you not to do it). There is no guarantee that stuff will work properly. For
> some reason though, it works kind of OK for most of VTK (although as said,
> use it at your own risk), but in particular some of the vtkChartXY stuff is
> failing explicitly (i.e. it throws exceptions). As said, this should not be
> considered a failure on the vtk side, but is rather due to incorrect
> linking.****
>
> ** **
>
> The only viable solution is to rebuild vtk also in debug mode and link the
> debug version of vtk to your debug-compiled app, and the release compiled
> version of vtk to your release-compiled app. After this I had now more
> trouble with stuff like this.****
>
> ** **
>
> Daniel****
>
> ** **
>
> *Von:* vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] *Im
> Auftrag von *Gishara Indeewarie
> *Gesendet:* Montag, 19. März 2012 12:42
> *An:* vtkusers at vtk.org
> *Betreff:* [vtkusers] Setting the axis titles in vtkChartXY****
>
> ** **
>
> Hi all,****
>
> ** **
>
> I am using vtkChartXY in my application according to the example (
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot).****
>
> It was working well, but as long as I set the x and y axis labels (instead
> of default names as X-Axis and Y-Axis) I am getting an exception.****
>
> eg: ****
>
> chart->GetAxis(vtkAxis::BOTTOM)->SetTitle("distance ");****
>
> I am using VTK built in release mode.And the program works well if I run
> it in release mode.****
>
> But when I run it in debug mode, it gives an exception. ****
>
> What should I do to make it work in debug mode as well?****
>
> I am using visual c++ in visual studio 2008.****
>
> Thanks.****
>
> ------------------------------------------------------------------------------------------------------
>
> Registergericht: Traunstein / Registry Court: HRB 275 - Sitz / Head
> Office: Traunreut
> Aufsichtsratsvorsitzender / Chairman of Supervisory Board: Rainer Burkhard
> Geschäftsführung / Management Board: Thomas Sesselmann (Vorsitzender /
> Chairman),
> Michael Grimm, Matthias Fauser, Sebastian Tondorf
>
> E-Mail Haftungsausschluss / E-Mail Disclaimer<http://www.heidenhain.de/disclaimer>
>



-- 
Gish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120320/8cc7d7e7/attachment.htm>


More information about the vtkusers mailing list