htdp icon indicating copy to clipboard operation
htdp copied to clipboard

dc<%> error for (make-circle 8675309)

Open bennn opened this issue 9 years ago • 1 comments

If I try to make a very large image with 2htdp/image, I get an error from the dc<%> interface. I wish the error came from the 2htdp/imagefunction & told me the size limit for my machine.

Here's an example program. Your size for "too large" may vary -- I had a student with a Dell laptop that could draw this circle.

(require 2htdp/image)
(circle 20000 "solid" "HotPink")
;; erase in dc<%>: drawing context is not ok: (instantiate (class ...) ...)

bennn avatar Sep 28 '16 17:09 bennn

It may be that there are some calls to ok? that are missing that could at least be turned into a comprehensible error message (perhaps not with the size limit).

rfindler avatar Sep 28 '16 18:09 rfindler