<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
DIV.FoxDiv20141110090321778807 {
LINE-HEIGHT: 1.5; FONT-FAMILY: 宋体; WORD-WRAP: break-word; COLOR: #000000; FONT-SIZE: 10.5pt; -WEBKIT-NBSP-MODE: SPACE; -WEBKIT-LINE-BREAK: AFTER-WHITE-SPACE
}
BODY {
LINE-HEIGHT: 1.5; FONT-FAMILY: 宋体; COLOR: #000000; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 9.00.8112.16575"></HEAD>
<BODY style="MARGIN: 10px">
<DIV
style="FONT-FAMILY: 华文仿宋; FONT-SIZE: 12pt">Hi, <SPAN>u.pietrzyk</SPAN>:
<DIV style="FONT-FAMILY: 华文仿宋; COLOR: #000000; FONT-SIZE: 12pt"> </DIV>
<DIV
style="TEXT-INDENT: 2em; FONT-FAMILY: 华文仿宋; COLOR: #000000; FONT-SIZE: 12pt">According
to your suggestion, I have solved the problem. </DIV>
<DIV
style="TEXT-INDENT: 2em; FONT-FAMILY: 华文仿宋; COLOR: #000000; FONT-SIZE: 12pt">Thank
you very much.</DIV></DIV>
<DIV
style="FONT-FAMILY: 华文仿宋; COLOR: #000000; FONT-SIZE: 12pt">
</DIV>
<DIV style="FONT-FAMILY: 华文仿宋; COLOR: #000000; FONT-SIZE: 12pt">wugc</DIV>
<DIV>2014-11-10</DIV>
<DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
</DIV>
<DIV><SPAN><SPAN
style="FONT-FAMILY: 宋体; COLOR: #000000; FONT-SIZE: 10.5pt"><SPAN
style="FONT-FAMILY: 宋体; COLOR: #000000; FONT-SIZE: 10.5pt">
<DIV style="COLOR: #c0c0c0">
<DIV style="COLOR: #c0c0c0">
<DIV style="COLOR: #c0c0c0">
<DIV style="COLOR: #c0c0c0">
<DIV style="COLOR: #c0c0c0">
<DIV style="COLOR: #c0c0c0">
<DIV style="COLOR: #c0c0c0"></SPAN></SPAN></SPAN>
<DIV> </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">
<DIV
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:u.pietrzyk@fz-juelich.de">Pietrzyk,
Uwe</A></DIV>
<DIV><B>Date:</B> 2014-11-07 21:17</DIV>
<DIV><B>To:</B> <A
href="mailto:wuguocheng@neusoft.com">wuguocheng</A></DIV>
<DIV><B>CC:</B> <A
href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</A></DIV>
<DIV><B>Subject:</B> Re: About EduGATE_October2014 installation with GATE
V62</DIV></DIV></DIV>
<DIV>
<DIV class=FoxDiv20141110090321778807>Hi Wuguocheng,
<DIV><BR></DIV>
<DIV>reading your last eMail and the output displayed I faintly remember that I
once had </DIV>
<DIV>a similar situation. It happened when I started the EduGATE examples under
vGate</DIV>
<DIV>and everything was belonging to root, i.e. superuser</DIV>
<DIV><BR></DIV>
<DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">If you list the
respective Gamma_Camera.txt using (at the prompt):</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px"><BR></DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">ls -als</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px"><BR></DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">then you should
see the following line, which tells, that I, as a user,</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">have the right to
read and potentially rewrite the file:</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px"><BR></DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">-rw-r--r--@ 1
upietrzyk staff 789 Nov 7 08:29 Gamma_Camera.txt</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px"><BR></DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">Please check,
whether you have the appropriate permission as specified</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">in my case. Such
things can happen, if somebody else has installed</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">the software and
as a normal user has no access for reading and/or</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">writing.</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">You can change the
owner with the command: chown and for changing the</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">access to files
you can use chmod.</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px"><BR></DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">Also, using the
command:</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px"><BR></DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">file *.txt</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px"><BR></DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">you can check,
whether the file Gamma_Camera.txt has the correct format:</DIV>
<DIV style="MARGIN: 0px; FONT-FAMILY: Menlo; FONT-SIZE: 11px">Gamma_Camera.txt:
ASCII text, with CRLF line terminators</DIV></DIV>
<DIV><BR></DIV>
<DIV>O hope, this finally helps in solving your problem.</DIV>
<DIV><BR></DIV>
<DIV>Kind regards,</DIV>
<DIV><BR></DIV>
<DIV>Uwe Pietrzyk<BR>
<DIV>
<DIV><SPAN
style="WIDOWS: 2; ORPHANS: 2">/----------------------------------------------------------------------</SPAN></DIV>
<DIV style="WIDOWS: 2; ORPHANS: 2">Prof. Dr. Uwe
Pietrzyk<BR>Diplom-Physiker<BR>Institut für Neurowissenschaften und Medizin /
INM-4<BR>Forschungszentrum Jülich GmbH<BR>52425 Jülich<BR>Tel: +49-2461-61
4763<BR>Fax: +49-2461-61 2820<BR>Mobil: +49-162-103-4871<BR>eMail: <A
href="mailto:U.Pietrzyk@fz-juelich.de">U.Pietrzyk@fz-juelich.de</A><BR><A
href="http://www.fz-juelich.de/inm/inm-4/DE/Home/home_node.html">http://www.fz-juelich.de/inm/inm-4/DE/Home/home_node.html</A><BR>&<BR>Bergische
Universit??t Wuppertal<BR>Fachbereich C - Physik / D.08.01<BR>Gau??str.
20<BR>42097 Wuppertal<BR>Tel: +49-(0)202-439-3523<BR>Fax:
+49-(0)202-439-2811<BR>eMail: <A
href="mailto:Uwe.Pietrzyk@physik.uni-wuppertal.de">Uwe.Pietrzyk@physik.uni-wuppertal.de</A><BR><A
href="http://www.medizinphysik.uni-wuppertal.de/">http://www.medizinphysik.uni-wuppertal.de</A><BR>----------------------------------------------------------------------/</DIV></DIV><BR>
<DIV>
<DIV>On 07 Nov 2014, at 04:21, wugc <<A
href="mailto:wuguocheng@neusoft.com">wuguocheng@neusoft.com</A>>
wrote:</DIV><BR class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; MARGIN: 10px; LETTER-SPACING: normal; FONT: 10.5pt/1.5 宋体; WHITE-SPACE: normal; WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">
<DIV style="FONT-FAMILY: 华文仿宋; FONT-SIZE: 12pt"> Hi<SPAN
class=Apple-converted-space> </SPAN><SPAN>u.pietrzyk</SPAN>,
<DIV style="FONT-FAMILY: 华文仿宋; FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-FAMILY: 华文仿宋; FONT-SIZE: 12pt">Thank you for your
reply.</DIV>
<DIV style="FONT-FAMILY: 华文仿宋; FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-FAMILY: 华文仿宋; FONT-SIZE: 12pt">
<DIV>When I running the other examples named Gamma_Camera_Release_2014, I also find the similar problems as follows:</DIV>
<DIV>Processing GenerateGateConfiguration.C( "Gamma_Camera.txt" )...</DIV>
<DIV>Error: Array index out of range al[found] -> [-1] valid upto al[49] GenerateGateConfiguration.C:138:</DIV>
<DIV>*** Interpreter error recovered ***</DIV>
<DIV> </DIV>
<DIV>I also changed the variable al[50] by al[80] as you suggest. But the same problems occurred as:</DIV>
<DIV>Processing GenerateGateConfiguration.C( "Coin_Chan.txt" )...</DIV>
<DIV>Error: Array index out of range al[found] -> [-1] valid upto al[79] GenerateGateConfiguration.C:144:</DIV>
<DIV>*** Interpreter error recovered ***</DIV>
<DIV> </DIV>
<DIV> I print output the variable "found" as follows, but I find
out that the variable found = -1. So I think maybe the variable" found"
must be slightly suspicious. But I don't know how to figure out the problem?</DIV></DIV></DIV>
<DIV style="FONT-FAMILY: 华文仿宋; FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-FAMILY: 华文仿宋; FONT-SIZE: 12pt">
<DIV> fin.open(config);</DIV>
<DIV> for (int i=0; i<numCombo; i++) {</DIV>
<DIV> </DIV>
<DIV> hframes[i] = new TGHorizontalFrame(this, 350, 20, kLHintsExpandX);</DIV>
<DIV> fCombo[i] = new TGComboBox(hframes[i], 100);</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> int numParameters=0;</DIV>
<DIV> int found=0;</DIV>
<DIV> </DIV>
<DIV> getline(fin,temp);</DIV>
<DIV> </DIV>
<DIV> while(found!=-1){</DIV>
<DIV> found=temp.find(";",found+1);</DIV>
<DIV> numParameters++;</DIV>
<DIV>printf("%d",found);</DIV>
<DIV>printf("\n");</DIV>
<DIV> };</DIV> </DIV>
<DIV style="FONT-FAMILY: 华文仿宋; FONT-SIZE: 12pt">Thank you very much.</DIV>
<DIV style="TEXT-INDENT: 2em; FONT-FAMILY: 华文仿宋; FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-FAMILY: 华文仿宋; FONT-SIZE: 12pt">wugc</DIV>
<DIV>2014-11-07</DIV>
<DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left SIZE=1>
</DIV>
<DIV><SPAN><SPAN style="FONT-FAMILY: 宋体; FONT-SIZE: 10.5pt"><SPAN
style="FONT-FAMILY: 宋体; FONT-SIZE: 10.5pt">
<DIV style="COLOR: rgb(192,192,192)">
<DIV style="COLOR: rgb(192,192,192)">
<DIV style="COLOR: rgb(192,192,192)">
<DIV style="COLOR: rgb(192,192,192)">
<DIV style="COLOR: rgb(192,192,192)">
<DIV style="COLOR: rgb(192,192,192)">
<DIV style="COLOR: rgb(192,192,192)">
<DIV
style="LINE-HEIGHT: 1.5; FONT-FAMILY: 宋体; WORD-WRAP: break-word; FONT-SIZE: 10.5pt; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"
class=FoxDiv20141107111634502014><FONT size=1
face=Arial></FONT></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></SPAN></SPAN></SPAN></DIV>
<DIV
style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">---------------------------------------------------------------------------------------------------<BR>Confidentiality
Notice: The information contained in this e-mail and any accompanying
attachment(s)<SPAN class=Apple-converted-space> </SPAN><BR>is intended
only for the use of the intended recipient and may be confidential and/or
privileged of<SPAN class=Apple-converted-space> </SPAN><BR>Neusoft
Corporation, its subsidiaries and/or its affiliates. If any reader of this
communication is<SPAN class=Apple-converted-space> </SPAN><BR>not the
intended recipient, unauthorized use, forwarding, printing, storing,
disclosure or copying<SPAN class=Apple-converted-space> </SPAN><BR>is
strictly prohibited, and may be unlawful.If you have received this
communication in error,please<SPAN
class=Apple-converted-space> </SPAN><BR>immediately notify the sender by
return e-mail, and delete the original message and all copies from<SPAN
class=Apple-converted-space> </SPAN><BR>your system. Thank you.<SPAN
class=Apple-converted-space> </SPAN><BR>---------------------------------------------------------------------------------------------------</DIV></DIV></BLOCKQUOTE></DIV><BR></DIV><BR><FONT
color=black size=1
face=Arial><BR>------------------------------------------------------------------------------------------------<BR>------------------------------------------------------------------------------------------------<BR>Forschungszentrum
Juelich GmbH<BR>52425 Juelich<BR>Sitz der Gesellschaft: Juelich<BR>Eingetragen
im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498<BR>Vorsitzender des
Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher<BR>Geschaeftsfuehrung: Prof.
Dr.-Ing. Wolfgang Marquardt (Vorsitzender),<BR>Karsten Beneke (stellv.
Vorsitzender), Prof. Dr.-Ing. Harald Bolt,<BR>Prof. Dr. Sebastian M.
Schmidt<BR>------------------------------------------------------------------------------------------------<BR>------------------------------------------------------------------------------------------------<BR><BR></FONT></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV><p>---------------------------------------------------------------------------------------------------<br>
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) <br>
is intended only for the use of the intended recipient and may be confidential and/or privileged of <br>
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is <br>
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying <br>
is strictly prohibited, and may be unlawful.If you have received this communication in error,please <br>
immediately notify the sender by return e-mail, and delete the original message and all copies from <br>
your system. Thank you. <br>
---------------------------------------------------------------------------------------------------</p></BODY></HTML>