<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
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-size: 11px; font-family: Menlo;">If you list the respective Gamma_Camera.txt using (at the prompt):</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">ls -als</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">then you should see the following line, which tells, that I, as a user,</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">have the right to read and potentially rewrite the file:</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">-rw-r--r--@ 1 upietrzyk staff 789 Nov 7 08:29 Gamma_Camera.txt</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Please check, whether you have the appropriate permission as specified</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">in my case. Such things can happen, if somebody else has installed</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">the software and as a normal user has no access for reading and/or</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">writing.</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">You can change the owner with the command: chown and for changing the</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">access to files you can use chmod.</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Also, using the command:</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">file *.txt</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">you can check, whether the file Gamma_Camera.txt has the correct format:</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">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="orphans: 2; widows: 2;">/----------------------------------------------------------------------</span></div>
<div style="orphans: 2; widows: 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="line-height: 1.5; font-family: 宋体; font-size: 10.5pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 10px;">
<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 align="left" size="1" style="width: 210px; height: 1px;">
</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 class="FoxDiv20141107111634502014" 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;">
<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 face="Arial" color="Black" size="1"><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>
</body>
</html>