<HTML xmlns="http://www.w3.org/TR/REC-html40" 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"><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19154">
<STYLE>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</STYLE>

<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>
</HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma" lang=DE link=blue vLink=purple>
<DIV>Hi Daniel,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for your support :).</DIV>
<DIV>&nbsp;</DIV>
<DIV>I took the time today to rebuild my VTK and my application code using both Debug.&nbsp; I then had to change my title string to use the ".toAscii()" conversion instead of the ".toStdString()" conversion for my QString objects.&nbsp; Everything now works in Debug only with MSVC 2010 Express.&nbsp; I still need to test the release modes.&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>However, things still don't work when both are RelWithDebInfo.&nbsp; Maybe Marcus can enlighten when he has a chance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Cheers.</DIV>
<DIV>Andrew<BR><BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>
<P>---------------------------------------------------------------<BR>1981-2011: Celebrating 30 Years of Innovation<BR>Follow us on Twitter: <A href="http://twitter.com/#!/NDIMedResearch">@NDIMedResearch</A></P>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></DIV>
<DIV><BR><IMG src="cid:DOREFESQZGDL.IMAGE_24.BMP"></DIV>
<DIV>--------------------</DIV>&gt;&gt;&gt; Frese Daniel Dr. &lt;frese@heidenhain.de&gt; 10/25/2011 1:50 AM &gt;&gt;&gt;<BR></DIV>
<DIV class=WordSection1>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt" lang=EN-US>Hi Andrew, Marcus,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt" lang=EN-US>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 style="FONT-FAMILY: Wingdings; COLOR: #1f497d; FONT-SIZE: 11pt" lang=EN-US>J</SPAN><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt" lang=EN-US>. <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt" lang=EN-US>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 style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt" lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt" lang=EN-US>Daniel<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt" lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
<DIV>
<DIV style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><B><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">Von:</SPAN></B><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"> 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>&nbsp;</o:p></P>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">Hello,<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">I have been using the vtkChartXY in previous release versions for a while now without any problems.&nbsp; However, I recently upgraded to VTK 5.8 and I having some difficulties.&nbsp; I am wondering if it has anything to do with the vtkChartXY::SetTitle being changed from a "const char* title"&nbsp;to a "const vtkStdString &amp;title" -- but I am just guessing.<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">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.&nbsp; However, when I go to change the Axis titles or the chart title to something useful, I get an unhandled exception: access violation.&nbsp; I tried to change the input from a quoted string to an actual vtkStdString but it crashes as well.&nbsp; 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 style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">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 style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">Here is my code:<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;&nbsp; <STRONG><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'">In Header:</SPAN></STRONG><o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">vtkSmartPointer&lt;vtkChartXY&gt; m_Chart;</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;<STRONG><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'"> In Source:</SPAN></STRONG><o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">&nbsp; m_Chart = vtkSmartPointer&lt;vtkChartXY&gt;::New();</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">&nbsp; m_Chart-&gt;SetShowLegend(true);</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><BR>&nbsp; //const vtkStdString xAxisLabel = "Index";<BR>&nbsp; //m_Chart-&gt;GetAxis(vtkAxis::BOTTOM)-&gt;SetTitle(xAxisLabel);<BR>&nbsp; m_Chart-&gt;GetAxis(vtkAxis::BOTTOM)-&gt;SetTitle("Index");<BR>&nbsp; //const vtkStdString yAxisLabel = "Position (mm)";<BR>&nbsp; //m_Chart-&gt;GetAxis(vtkAxis::LEFT)-&gt;SetTitle(yAxisLabel);<BR>&nbsp; m_Chart-&gt;GetAxis(vtkAxis::LEFT)-&gt;SetTitle("Position (mm)");</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">&nbsp; if( this-&gt;getName().isEmpty() )&nbsp; // Note: getName() returns a QString<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; const vtkStdString title = "Position Data";<BR>&nbsp;&nbsp;&nbsp; m_Chart-&gt;SetTitle(title);<BR>&nbsp; }<BR>&nbsp; else<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; const vtkStdString title = "Position Data - " + this-&gt;getName().toStdString();<BR>&nbsp;&nbsp;&nbsp; m_Chart-&gt;SetTitle(title);<BR>&nbsp; }</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">Any help is appreciated!<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">Thanks.<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">Andrew<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">&nbsp;<o:p></o:p></SPAN></P></DIV>
<DIV>
<P><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">---------------------------------------------------------------<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 style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">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 style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"><BR><IMG id=_x0000_i1025 border=0 src="cid:DANJPMJSEJPH.IMAGE_1.png" width=96 height=94><o:p></o:p></SPAN></P></DIV>
<DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt">--------------------<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>