I meant event callback.  Or wdhandler in pre-J701.

h is the name of the verb that will lead to exception. The frontend knows
this but j.dll itself cannot unless debug is enabled.

cdcallback=: 3 : 0
q=. {:w=. 15!:17''
if. q>:#cbregs_jgtk_ do.
  smoutput 'callback invalid pointer: ',":w return.
end.
h=. >q{cbregs_jgtk_
if. 3~:4!:0 <h do.
  smoutput 'callback undefined handler: ',h return.
end.
try.
  h~w
catchd.
  smoutput 'callback run error: ',h,LF,13!:12''
end.
)

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to