<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        mso-believe-normal-left:yes;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.E-MailFormatvorlage19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><![if mso 9]><style>p.MsoNormal
        {margin-left:3.0pt;}
</style><![endif]><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple style='margin-left:3.0pt;margin-top:3.0pt;margin-right:3.0pt;margin-bottom:.75pt'><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Andrew, Marcus,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I am still interested in this issue, too. Since May, when I reported a similar issue (the quoted post by Andrew), I took care to combine only Release binaries or only Debug binaries, and it worked nicely so far. And I guess this is really all a user can ask for </span><span lang=EN-US style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>J</span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>But still, a strange feeling remains. During the (admittedly quite limited time) I have been using vtk, this was the only place within the toolkit that led to trouble mixing a debug app and a release vtk lib. I am aware, that with MSVC (I still use version 2008) anything strange can happen if you mix these, but for my applications the fact remains, that everything I tried works fine with mixed debug/release stuff – except of the charts API.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Daniel<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] <b>Im Auftrag von </b>Andrew Wiles<br><b>Gesendet:</b> Montag, 24. Oktober 2011 20:58<br><b>An:</b> vtkusers@vtk.org<br><b>Betreff:</b> [vtkusers] Problem with vtkChartXY::SetTitle and vtkAxis::SetTitle<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Hello,<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>I have been using the vtkChartXY in previous release versions for a while now without any problems. However, I recently upgraded to VTK 5.8 and I having some difficulties. I am wondering if it has anything to do with the vtkChartXY::SetTitle being changed from a "const char* title" to a "const vtkStdString &title" -- but I am just guessing.<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>At any rate, I create the vtkChartXY using a vtkSmartPointer and the axis get their titles initialized to "X Axis" and "Y Axis" without any difficulties. However, when I go to change the Axis titles or the chart title to something useful, I get an unhandled exception: access violation. I tried to change the input from a quoted string to an actual vtkStdString but it crashes as well. I saw a post online (<a href="http://vtk.org/pipermail/vtkusers/2011-May/116473.html">http://vtk.org/pipermail/vtkusers/2011-May/116473.html</a>) that this is due to mismatched build types, but I build VTK with RelWithDebInfo and my project is build with RelWithDebInfo.<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>I am working with VTK 5.8 Release Tag, on Windows XP 32Bit and using MSVC2010 and Qt 4.7.2.<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Here is my code:<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <strong><span style='font-family:"Tahoma","sans-serif"'>In Header:</span></strong><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span><span style='font-size:10.0pt;font-family:"Courier New"'>vtkSmartPointer<vtkChartXY> m_Chart;</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <strong><span style='font-family:"Tahoma","sans-serif"'> In Source:</span></strong><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Courier New"'> m_Chart = vtkSmartPointer<vtkChartXY>::New();</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Courier New"'> m_Chart->SetShowLegend(true);</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Courier New"'><br> //const vtkStdString xAxisLabel = "Index";<br> //m_Chart->GetAxis(vtkAxis::BOTTOM)->SetTitle(xAxisLabel);<br> m_Chart->GetAxis(vtkAxis::BOTTOM)->SetTitle("Index");<br> //const vtkStdString yAxisLabel = "Position (mm)";<br> //m_Chart->GetAxis(vtkAxis::LEFT)->SetTitle(yAxisLabel);<br> m_Chart->GetAxis(vtkAxis::LEFT)->SetTitle("Position (mm)");</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Courier New"'> if( this->getName().isEmpty() ) // Note: getName() returns a QString<br> {<br> const vtkStdString title = "Position Data";<br> m_Chart->SetTitle(title);<br> }<br> else<br> {<br> const vtkStdString title = "Position Data - " + this->getName().toStdString();<br> m_Chart->SetTitle(title);<br> }</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Any help is appreciated!<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Thanks.<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Andrew<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <o:p></o:p></span></p></div><div><p><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>---------------------------------------------------------------<br>1981-2011: Celebrating 30 Years of Innovation<br>Follow us on Twitter: <a href="http://twitter.com/#!/NDIMedResearch">@NDIMedResearch</a><o:p></o:p></span></p><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Andrew D. Wiles, PhD, PEng<br>Research Scientist, Medical Division<br>NDI<br>103 Randall Drive<br>Waterloo, ON, Canada, N2V 1C5<br>Telephone: +1 (519) 884-5142 ext. 314<br>Toll Free: +1 (877) 634-6340<br>Global: ++ (800) 634-634-00<br>Facsimile: +1 (519) 884-5184<br>Website: <a href="http://www.ndigital.com/">www.ndigital.com</a><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><br><img border=0 width=96 height=94 id="_x0000_i1025" src="cid:image001.png@01CC92E9.B183C560"><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>--------------------<o:p></o:p></span></p></div></div><pre></PRE><p>
------------------------------------------------------------------------------------------------------ <br>
Registergericht: Traunstein / Registry Court: HRB 275 - Sitz / Head Office: Traunreut <br>
Aufsichtsratsvorsitzender / Chairman of Supervisory Board: Rainer Burkhard <br>
Geschäftsführung / Management Board: Thomas Sesselmann (Vorsitzender / Chairman),<br>
Michael Grimm, Matthias Fauser, Sebastian Tondorf<br><br>
<a href="http://www.heidenhain.de/disclaimer" target="_blank">E-Mail Haftungsausschluss / E-Mail Disclaimer</a><br><pre>
</pre></body></html>