vnc & exit

Asked by David ENJOLRAS

code:

vnc = vncStart("atemqesxhost21p", 5901)
vnc.stop
exit(0)

generate :
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8

[error (28/06/17 08:10:18)] script [ BMR ] stopped with error in line 4
[error (28/06/17 08:10:18)] java.util.ConcurrentModificationException ( java.util.ConcurrentModificationException )

==> How to provide an exit code after after use vncStart ?
( given than exit(0) alone works well )

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
David ENJOLRAS
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

vnc = vncStart("atemqesxhost21p", 5901)
vnc.stop
exit(0)

... are only 3 lines, but the error says:
 stopped with error in line 4

furthermore it must be:
vnc.stop()

Revision history for this message
David ENJOLRAS (david-enjolras) said :
#2

that's all I have.
maybe a blank line in the top of my script ?

Revision history for this message
David ENJOLRAS (david-enjolras) said :
#3

vnc.stop()
is the solution !