[prev in list] [next in list] [prev in thread] [next in thread]
List: insight-users
Subject: [Insight-users] MFC with ITK 3.10.1 and VTK 5.2 application is running fine in debug mode, crashing
From: Veena M <Veena.M () hcl ! com>
Date: 2012-12-21 11:16:30
Message-ID: 079F6BF18B503642B1D9FF50379A901C1C6101F3CB () CHN-HCLT-EVS17 ! HCLT ! CORP ! HCL ! IN
[Download RAW message or body]
Hi all,
I am using MFC with ITK 3.10.1 and VTK 5.2
The application is running fine in debug mode.
Its breaking in release mode in the file gdcmDictSet.cxx
std::string DictSet::BuildDictPath()
{
std::string resultPath;
const char *envPath;
envPath = getenv("GDCM_DICT_PATH");
if (envPath && (strlen(envPath) != 0))
{
resultPath = envPath;
gdcmWarningMacro( "Dictionary path set from environnement");
}
else
{
resultPath = PUB_DICT_PATH; // breaking here
}
if ( resultPath.length() && resultPath[resultPath.length()-1] != '/' )
{
resultPath += '/';
}
return resultPath;
}
Please help me to resolve this .
Thanks in advance
Veena
> > DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for \
the named recipient(s) only. E-mail transmission is not guaranteed to be secure or \
error-free as information could be intercepted, corrupted, lost, destroyed, arrive \
late or incomplete, or may contain viruses in transmission. The e mail and its \
contents (with or without referred errors) shall therefore not attach any liability \
on the originator or HCL or its affiliates. Views or opinions, if any, presented in \
this email are solely those of the author and may not necessarily reflect the views \
or opinions of HCL or its affiliates. Any form of reproduction, dissemination, \
copying, disclosure, modification, distribution and / or publication of this message \
without the prior written consent of authorized representative of HCL is strictly \
prohibited. If you have received this email in error please delete it and notify the \
sender immediately. Before opening any email and/or attachments, please check them \
for viruses and other defects.
----------------------------------------------------------------------------------------------------------------------------------------------------
[Attachment #3 (text/html)]
<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=us-ascii"><meta name=Generator content="Microsoft Word 14 \
(filtered medium)"><style><!-- /* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[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=EN-US link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal>Hi all,<o:p></o:p></p><p class=MsoNormal>I am \
using MFC with ITK 3.10.1 and VTK 5.2<o:p></o:p></p><p class=MsoNormal>The \
application is running fine in debug mode.<o:p></o:p></p><p class=MsoNormal>Its \
breaking in release mode in the file gdcmDictSet.cxx<o:p></o:p></p><p \
class=MsoNormal><o:p> </o:p></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier \
New"'>std::string DictSet::BuildDictPath() <o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier \
New"'>{<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier New"'> std::string \
resultPath;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier New"'> <span \
style='color:blue'>const</span> <span style='color:blue'>char</span> \
*envPath;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier New"'> envPath = \
getenv(<span style='color:#A31515'>"GDCM_DICT_PATH"</span>);<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier New"'> <span \
style='color:blue'>if</span> (envPath && (strlen(envPath) != \
0))<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier New"'> \
{<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier New"'> \
resultPath = envPath;<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier \
New"'> gdcmWarningMacro( <span \
style='color:#A31515'>"Dictionary path set from \
environnement"</span>);<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier \
New"'> }<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier \
New"'> <span style='color:blue'>else<o:p></o:p></span></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier New"'> \
{<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier New"'> \
<b><u><span style='color:red'>resultPath = \
PUB_DICT_PATH; \
</span></u><span style='color:red'>// breaking \
here<u><o:p></o:p></u></span></b></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier \
New";color:red'> </span><span \
style='font-size:10.0pt;font-family:"Courier New"'>}<span \
style='color:red'><o:p></o:p></span></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier \
New"'> <span style='color:blue'>if</span> ( resultPath.length() \
&& resultPath[resultPath.length()-1] != <span \
style='color:#A31515'>'/'</span> )<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier \
New"'> {<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier \
New"'> resultPath += <span \
style='color:#A31515'>'/'</span>;<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier \
New"'> }<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier \
New"'><o:p> </o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier \
New"'> <span style='color:blue'>return</span> \
resultPath;<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:10.0pt;font-family:"Courier New"'>}<o:p></o:p></span></p><p \
class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier \
New"'><o:p> </o:p></span></p><p class=MsoNormal><span \
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p \
class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>Please help \
me to resolve this .<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:10.0pt;font-family:"Courier New"'>Thanks in \
advance<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:10.0pt;font-family:"Courier \
New"'>Veena</span><o:p></o:p></p></div><span style="FONT-FAMILY: \
'Arial','sans-serif'; COLOR: gray; FONT-SIZE: 7.5pt; mso-fareast-font-family: 'Times \
New Roman'"> <P style="MARGIN: 0in 0in 0pt" class=MsoNormal><br><br><font \
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: gray; FONT-SIZE: \
9px">::DISCLAIMER::<br>--------------------------------------------------------------- \
-------------------------------------------------------------------------------------</font></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><font style="FONT-FAMILY: \
'Arial','sans-serif'; COLOR: gray; FONT-SIZE: 11px">The contents of this e-mail and \
any attachment(s) are confidential and intended for the named recipient(s) \
only.<br>E-mail transmission is not guaranteed to be secure or error-free as \
information could be intercepted, corrupted, <br>lost, destroyed, arrive late or \
incomplete, or may contain viruses in transmission. The e mail and its contents \
<br>(with or without referred errors) shall therefore not attach any liability on the \
originator or HCL or its affiliates. <br>Views or opinions, if any, presented in this \
email are solely those of the author and may not necessarily reflect the <br>views or \
opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, \
disclosure, modification, <br>distribution and / or publication of this message \
without the prior written consent of authorized representative of <br>HCL is strictly \
prohibited. If you have received this email in error please delete it and notify the \
sender immediately. <br>Before opening any email and/or attachments, please check \
them for viruses and other defects.</font></P> <P style="MARGIN: 0in 0in 0pt" \
class=MsoNormal><font style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: gray; \
FONT-SIZE: 11px">--------------------------------------------------------------------- \
-------------------------------------------------------------------------------</font></span></P></body></html>
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
--===============1691419499==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic