dunno why but all of you guys missed this:
If $$ExitApp.OnClick =1

which surely would cause problems.
remove the double dollar sign from there and shoot on.
_________________________
!

download KiXnet