<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> </DIV>
<DIV>I am trying to debug cmake based ITK program. And I took diffeomorphic Demons (dowload for ITK journal) as example see attated file.</DIV>
<DIV> </DIV>
<DIV>I then build ITK and diffeomprohic Demons in Debug model. I can run the diffeomporphic demons, but I have some trouble to go inside the sub-function at here </DIV>
<DIV> </DIV>
<DIV>%%%%%%%%%%%%%%%%%%%%%%%%%</DIV>
<DIV> </DIV>
<DIV><FONT size=2>
<P>switch ( imageIO->GetNumberOfDimensions() )</P>
<P>{</P>
<P>case 2:</P>
<P>DemonsRegistrationFunction<2>(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<3>(args);</P>
<P>break;</P>
<P>}</P>
<P>default:</P>
<P>std::cout << "Unsuported dimension" << std::endl;</P>
<P>exit( EXIT_FAILURE );</P>
<P>}</P>
<P></P>
<P>return EXIT_SUCCESS;</P>
<P> </P>
<P>%%%%%%%%%%%%</P></FONT></DIV>
<DIV> </DIV>
<DIV>add-them(a1,a2) is small code added by me, I can go inside add-them(a1,a2) by step or setting breakpoint, but I can not go inside
<P>DemonsRegistrationFunction<3>(args) in either way. The program will run till finish. </P>
<P> </P>
<P> </P>
<P>I tried DDD and gdb, can any body tell me what happened.</P>
<P> </P>
<P>Thanks</P>
<P> </P>
<P>Baoyun</P>
<P> </P>
<P> </P>
<P> </P></DIV>
<DIV> </DIV></DIV><BR></DIV></DIV></div><br>
</body></html>