Hey Yan,
I don't really have a solution (as I never used this parallelport
config thing and I have no idea what the function of 'userbreakstate'
is for...) but that is probably where your problem lies. As you can
see in line three (If (GetUserBreakState <> 0) Then ) all the script
between 'Then' and 'End If' will only be executed if userbreakstate is
NOT (<>) 0. In the forelast line of the piece of code you posted
(SetUserBreakState 0) userbreakstate is set to 0 and therefore this
code cannot run twice (seeing as "If (GetUserBreakState <> 0)" will no
longer be valid after it ran once).
I think that that's the source of your problem, but I unfortunately
don't have a solution (other than simply removing both lines but that
probably doesn't do the trick) and it also does not explain why e-
prime quits altogether when you try it twice...
So for what it's worth: I hope the above is somewhat helpful.
Hopefully others can shine some light on the whole userbreakstate-
thing... what and why and all that.
Best,
liwenna