Hi all,<br><br>In debugging my second display monitor issue I&#39;m trying to make a little test utility from the Racket source. <br><br>I&#39;ve copied a snippet (pasted below) from &lt;somepath&gt;\collects\mred\private\wx\win32\frame.rkt into a new file in the same directory as frame.rkt. <br>
<br>Although it will compile (with raco make) and execute from the command line (using racket), DrRacket refuses to compile or execute, failing with the error message:<br>&quot;cannot instantiate `racket/gui/base&#39; a second time in the same process&quot;<br>
<br>I&#39;ve tried changing the order of the files in the require with no success. <br><br>Can anyone tell me if I&#39;m doing something wrong or if I have a problem with my configuration?<br><br>Cheers,<br><br>Kieron. <br>
<br>****<br><br>#lang racket/base<br><br>(require <br>         ffi/unsafe<br>         &quot;utils.rkt&quot;<br>         &quot;types.rkt&quot;<br>         )<br><br>(define-user32 EnumDisplayMonitors (_wfun _HDC <br>                        _pointer <br>
                      (_wfun #:atomic? #t _pointer _HDC _RECT-pointer _pointer -&gt; _BOOL)<br>                      _pointer -&gt; _BOOL))<br><br>