This may or may not work for them, but ask the user to open the 
"viewer.rkt" file in their racket installation (it should be in C:\Program 
Files\Racket\share\pkgs\slideshow-lib\slideshow) and comment out the 
`set-icon` call around line 1512.   That is, comment out the following 
block:

    (let* ([bm slideshow-bm]
           [mbm slideshow-mbm])
      (when (send bm ok?)
        (send f set-icon bm (and (send mbm ok?) mbm) 'both)))

This is the line in GitHub:

https://github.com/racket/slideshow/blob/c61c80de63cf7b2197d67c078bdc9133823c0030/slideshow-lib/slideshow/viewer.rkt#L1509

---

Others may come up with better workarounds, but this looks to me like a 
problem with the Racket GUI library.  Slideshow fails on my home PC but 
works on my work PC, both Windows 10 but different build numbers.  The 
problem is that the windows CreateIconIndirect API call is passed an 
invalid parameter (this is what code 87 means).  Not sure what the invalid 
parameter is (or why it is invalid), but it is probably either the bitmap 
or the mask.

Alex.

On Thursday, August 22, 2019 at 11:40:45 AM UTC+8, Stephen De Gabrielle 
wrote:
>
> Hi
>
> I’m trying to help a user who is getting an error when trying to run 
> slideshow:
>
> I typed "#lang slideshow" into DrRacket and got the following error:
>
> CreateIconIndirect: call failed (87)
>
> Interactions disabled: slideshow does not support a REPL (no 
> #%top-interaction)
>
> They have two computers - slideshow works on a newer pc(win 10) but fails 
> on one that has been upgraded from windows 7 to 10. I can’t determine any 
> other difference.
>
>
> Any ideas how I can help this user ?
>
>
>
> https://www.reddit.com/r/Racket/comments/ct95b0/error_when_i_try_to_use_slideshow/?utm_source=share&utm_medium=ios_app
>
>
> Kind regards
>
> Stephen
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/d3ec8c4f-6c58-45be-962e-14776d53c32c%40googlegroups.com.

Reply via email to