Hi all,<br><br>In debugging my second display monitor issue I'm trying to make a little test utility from the Racket source. <br><br>I've copied a snippet (pasted below) from <somepath>\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>"cannot instantiate `racket/gui/base' a second time in the same process"<br>
<br>I've tried changing the order of the files in the require with no success. <br><br>Can anyone tell me if I'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> "utils.rkt"<br> "types.rkt"<br> )<br><br>(define-user32 EnumDisplayMonitors (_wfun _HDC <br> _pointer <br>
(_wfun #:atomic? #t _pointer _HDC _RECT-pointer _pointer -> _BOOL)<br> _pointer -> _BOOL))<br><br>