<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>Dear Luis and All:</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am trying to debug cmake based ITK program. And I took diffeomorphic Demons (dowload for ITK journal)&nbsp;as example see attated file.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I then build ITK and diffeomprohic Demons in Debug model. I can run the diffeomporphic demons, but&nbsp;I have some trouble to go inside the sub-function at here </DIV>
<DIV>&nbsp;</DIV>
<DIV>%%%%%%%%%%%%%%%%%%%%%%%%%</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>
<P>switch ( imageIO-&gt;GetNumberOfDimensions() )</P>
<P>{</P>
<P>case 2:</P>
<P>DemonsRegistrationFunction&lt;2&gt;(args);</P>
<P>break;</P>
<P>case 3:</P>
<P>{</P>
<P>float a1=(float)2;</P>
<P>float a2=(float)3;</P>
<P>add_them(a1,a2);</P>
<P>DemonsRegistrationFunction&lt;3&gt;(args);</P>
<P>break;</P>
<P>}</P>
<P>default:</P>
<P>std::cout &lt;&lt; "Unsuported dimension" &lt;&lt; std::endl;</P>
<P>exit( EXIT_FAILURE );</P>
<P>}</P>
<P></P>
<P>return EXIT_SUCCESS;</P>
<P>&nbsp;</P>
<P>%%%%%%%%%%%%</P></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>add-them(a1,a2) is small code added by me, I can go inside add-them(a1,a2)&nbsp; by step or setting breakpoint, but I can not go inside 
<P>DemonsRegistrationFunction&lt;3&gt;(args) in either way. The program will run till finish. </P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>I tried DDD and gdb, can any body tell me what happened.</P>
<P>&nbsp;</P>
<P>Thanks</P>
<P>&nbsp;</P>
<P>Baoyun</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P></DIV>
<DIV>&nbsp;</DIV></DIV><BR></DIV></DIV></div><br>



      </body></html>