made the error display handler be a little more robust for multi-threading situations
svn: r7177
This commit is contained in:
parent
460c3d6477
commit
14888e3e07
|
@ -21,6 +21,8 @@
|
|||
(define system-namespace (current-namespace))
|
||||
(define first-dir (current-directory))
|
||||
|
||||
(define error-display-eventspace (make-eventspace))
|
||||
|
||||
(define original-error-display-handler (error-display-handler))
|
||||
|
||||
(define error-display-handler-message-box-title
|
||||
|
@ -44,10 +46,6 @@
|
|||
(original-error-display-handler msg exn))
|
||||
(get-output-string p))])
|
||||
|
||||
(if (eq? (current-eventspace) system-eventspace)
|
||||
(message-box title text #f '(stop ok))
|
||||
(parameterize ([current-eventspace system-eventspace]
|
||||
[current-custodian system-custodian])
|
||||
(queue-callback
|
||||
(λ ()
|
||||
(message-box title text #f '(stop ok)))))))))))
|
||||
(parameterize ([current-custodian system-custodian])
|
||||
(parameterize ([current-eventspace error-display-eventspace])
|
||||
(message-box title text #f '(stop ok)))))))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user