[Gate-users] About EduGATE_October2014 installation with GATE V62
Pietrzyk, Uwe
u.pietrzyk at fz-juelich.de
Fri Nov 7 14:17:58 CET 2014
Hi Wuguocheng,
reading your last eMail and the output displayed I faintly remember that I once had
a similar situation. It happened when I started the EduGATE examples under vGate
and everything was belonging to root, i.e. superuser
If you list the respective Gamma_Camera.txt using (at the prompt):
ls -als
then you should see the following line, which tells, that I, as a user,
have the right to read and potentially rewrite the file:
-rw-r--r--@ 1 upietrzyk staff 789 Nov 7 08:29 Gamma_Camera.txt
Please check, whether you have the appropriate permission as specified
in my case. Such things can happen, if somebody else has installed
the software and as a normal user has no access for reading and/or
writing.
You can change the owner with the command: chown and for changing the
access to files you can use chmod.
Also, using the command:
file *.txt
you can check, whether the file Gamma_Camera.txt has the correct format:
Gamma_Camera.txt: ASCII text, with CRLF line terminators
O hope, this finally helps in solving your problem.
Kind regards,
Uwe Pietrzyk
/----------------------------------------------------------------------
Prof. Dr. Uwe Pietrzyk
Diplom-Physiker
Institut für Neurowissenschaften und Medizin / INM-4
Forschungszentrum Jülich GmbH
52425 Jülich
Tel: +49-2461-61 4763
Fax: +49-2461-61 2820
Mobil: +49-162-103-4871
eMail: U.Pietrzyk at fz-juelich.de<mailto:U.Pietrzyk at fz-juelich.de>
http://www.fz-juelich.de/inm/inm-4/DE/Home/home_node.html
&
Bergische Universität Wuppertal
Fachbereich C - Physik / D.08.01
Gaußstr. 20
42097 Wuppertal
Tel: +49-(0)202-439-3523
Fax: +49-(0)202-439-2811
eMail: Uwe.Pietrzyk at physik.uni-wuppertal.de<mailto:Uwe.Pietrzyk at physik.uni-wuppertal.de>
http://www.medizinphysik.uni-wuppertal.de<http://www.medizinphysik.uni-wuppertal.de/>
----------------------------------------------------------------------/
On 07 Nov 2014, at 04:21, wugc <wuguocheng at neusoft.com<mailto:wuguocheng at neusoft.com>> wrote:
Hi u.pietrzyk,
Thank you for your reply.
When I running the other examples named Gamma_Camera_Release_2014, I also find the similar problems as follows:
Processing GenerateGateConfiguration.C( "Gamma_Camera.txt" )...
Error: Array index out of range al[found] -> [-1] valid upto al[49] GenerateGateConfiguration.C:138:
*** Interpreter error recovered ***
I also changed the variable al[50] by al[80] as you suggest. But the same problems occurred as:
Processing GenerateGateConfiguration.C( "Coin_Chan.txt" )...
Error: Array index out of range al[found] -> [-1] valid upto al[79] GenerateGateConfiguration.C:144:
*** Interpreter error recovered ***
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?
fin.open(config);
for (int i=0; i<numCombo; i++) {
hframes[i] = new TGHorizontalFrame(this, 350, 20, kLHintsExpandX);
fCombo[i] = new TGComboBox(hframes[i], 100);
int numParameters=0;
int found=0;
getline(fin,temp);
while(found!=-1){
found=temp.find(";",found+1);
numParameters++;
printf("%d",found);
printf("\n");
};
Thank you very much.
wugc
2014-11-07
________________________________
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141107/a53f3dd6/attachment.html>
More information about the Gate-users
mailing list