Re: [racket] Catching Com exception

2013-02-20 Thread Matthew Flatt
At Tue, 19 Feb 2013 13:36:17 +0100, herak...@gmx.de wrote: > is this the right direction? > > (with-handlers ([exn:fail? (lambda (exn) (printf "com-exp-file-exists"))]) > (set! Object (com-invoke COMOBJ "Method1" 2))) Assuming that you want to catch exceptions that are raised by "

[racket] Catching Com exception

2013-02-19 Thread heraklea
Hello friends, is this the right direction? (with-handlers ([exn:fail? (lambda (exn) (printf "com-exp-file-exists"))]) (set! Object (com-invoke COMOBJ "Method1" 2))) Yours, Racket Users list: http://lists.racket-lang.org/users

[racket] Catching Com exception

2013-02-14 Thread heraklea
Hello friends, how can I catch an com exception during execution of some com calls and how can I redirect the error messages. At the moment when a com exception occurs it is placed in Drracket. Yours, Racket Users list: http://lists.racket-lang.org/users