On Saturday, April 25, 2015 01:39:54 AM you wrote:
> On Saturday, April 25, 2015 01:34:59 AM you wrote:
> > To all,
> > 
> > I have a project that I'm trying to compile to a single bytecode file via
> > (raco demod). I compile a module .rkt file which requires several library
> > module .rkt files. One of these module .rkt files is a windowing library
> > that call on #lang racket/gui. (raco demod) manages to flatten and
> > generate
> > the bytecode but the bytecode fails to run with (racket). This is the
> > error
> > I get from (raco decompile).
> > -----------------
> > 
> >     (#%apply-values
> >     
> >      _print-values4927
> >      (if (_scheme_register_process_global10921
> >      
> >           '"GRacket-support-initialized"
> >           (_cast8910 '1 _scheme _pointer))
> >        
> >        (error
> >        
> >         '"cannot instantiate `racket/gui/base' a second time in the same
> > 
> > process")
> > 
> >        '#<void>))
> > 
> > -----------------
> > The program runs fine when I compile it with (raco make) and (raco exe).
> > In
> > addition, the windowing library is only required once. What could be
> > causing this error?
> > 
> > Regards,
> > Mark
> 
> This error also repeats if I just (raco demod) the windowing library itself.
> 
> Regards,
> Mark

I tried a simple sample of GUI code and I get the same error:

-----
#lang racket/gui

(let ([window (new frame% [label "Test Window"]
                          [stretchable-width #t]
                          [stretchable-height #t])])
  (new message% [label "testing"]
                [stretchable-height #t]
                [stretchable-width #t]
                [parent window])
  (send window show #t))
------

Regards,
Mark

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to