<div dir="ltr">This is probably because ~a has a contract on it and the contract system does fancy stuff to figure out names for blame assignment, including possibly looking at that file.<div><br></div><div>This problem has been fixed in the current git code and the fix should be included in our next release (due out soon).</div>
<div><br>Robby</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 24, 2014 at 12:23 PM, 75thNumber . <span dir="ltr"><<a href="mailto:miloarvidsson@gmail.com" target="_blank">miloarvidsson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">i'm using racket textual v5.3.6 on windows.<br>
<br>
~a seems to be crashing my sandboxed programs.<br>
<br>
Here's an example (foo.rkt):<br>
<br>
  #lang racket/base<br>
<br>
  (require racket/sandbox)<br>
<br>
  (define evaluate (make-evaluator 'racket '(define (main) (~a (+ 1 2)))))<br>
<br>
  (evaluate '(main))<br>
<br>
When I run foo.rkt at the prompt, I get an error:<br>
<br>
d:\test\racket foo.rkt<br>
<br>
current-directory: `exists' access denied for D:\test\<br>
  context...:<br>
   C:\Program Files\Racket-Textual\collects\setup\private\main-collects.rkt:19:4:<br>
find-main-collects<br>
   C:\Program Files\Racket-Textual\collects\racket\private\promise.rkt:104:10<br>
   C:\Program Files\Racket-Textual\collects\racket\private\more-scheme.rkt:263:2:<br>
call-with-exception-handler<br>
   C:\Program Files\Racket-Textual\collects\racket\private\promise.rkt:96:0:<br>
force/generic<br>
   C:\Program Files\Racket-Textual\collects\setup\path-relativize.rkt:31:4:<br>
exploded-root<br>
   C:\Program Files\Racket-Textual\collects\racket\private\promise.rkt:104:10<br>
   C:\Program Files\Racket-Textual\collects\racket\private\more-scheme.rkt:263:2:<br>
call-with-exception-handler<br>
   C:\Program Files\Racket-Textual\collects\racket\private\promise.rkt:96:0:<br>
force/generic<br>
   C:\Program Files\Racket-Textual\collects\setup\path-relativize.rkt:34:2:<br>
path->relative<br>
   C:\Program Files\Racket-Textual\collects\setup\path-to-relative.rkt:31:2:<br>
path->relative-string9<br>
   C:\Program Files\Racket-Textual\collects\racket\contract\private\provide.rkt:58:9<br>
   C:\Program Files\Racket-Textual\collects\racket\sandbox.rkt:631:18<br>
   C:\Program Files\Racket-Textual\collects\racket\sandbox.rkt:363:0:<br>
call-with-limits<br>
   C:\Program Files\Racket-Textual\collects\racket\sandbox.rkt:611:0:<br>
evaluate-program<br>
   C:\Program Files\Racket-Textual\collects\racket\private\more-scheme.rkt:146:2:<br>
call-with-break-parameterization<br>
   C:\Program Files\Racket-Textual\collects\racket\sandbox.rkt:744:2:<br>
user-process<br>
<br>
I don't get an error when I remove the call to ~a.<br>
____________________<br>
  Racket Users list:<br>
  <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</blockquote></div><br></div>