[racket] Embedding an image in Racket source
Hello,
I have two files: a file "a.rkt" that defines and provides a name to
hold an image; and a file "b.rkt" that requires "a.rkt". I press the
Run button with "b.rkt" in the definitions window and I get that I
mentioned before.
What exactly is the problem with the images you are trying to fix?
Regards,
José
On quarta-feira, 4 de Janeiro de 2012 02:40:27, Robby Findler wrote:
> In general, you cannot compile files that contain images (at least not
> until we figure out how to fix that, but that probably won't be soon).
>
> Are you trying to compile the file directly or is something else doing
> it for you?
>
> Robby
>
> 2012/1/3 José Lopes<jose.lopes at ist.utl.pt>:
>> Hello,
>>
>> I am using Racket 5.2.0.7.
>> I defined a name that holds an image, embedded in a Racket source file, and
>> I exported the name.
>>
>> When I try to import that name from another file I get this error:
>>
>> ..\..\..\..\..\..\..\Program
>> Files\Racket-5.2.0.7\collects\compiler\cm.rkt:369:6: write: cannot marshal
>> value that is embedded in compiled code: (object:image-snip% ...)
>>
>> Does this mean I cannot export names that refer to an image?
>>
>> Regards,
>> José
>>
>> --
>> José António Branquinho de Oliveira Lopes
>> 58612 - MEIC-A
>> jose.lopes at ist.utl.pt
>>
>> ____________________
>> Racket Users list:
>> http://lists.racket-lang.org/users
--
José António Branquinho de Oliveira Lopes
58612 - MEIC-A
jose.lopes at ist.utl.pt