[plt-scheme] foreign: am I missing something basic?

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon Sep 28 09:08:58 EDT 2009

Ok, bad guess. The FFI defines _foo and _foo-pointer for most types,
so I assumed it would be the same for _scheme. Rereading your original
post I see you successfully tried your original code on OS X,
suggesting the error is Windows specific. My long-ago experience with
DLLs on Windows is that they're a bit wack: you have to mess around
with dllexport declarations or something, but I don't know how all
this busy work actually affects the generated DLL. I can only suggest
spending some time w/ Google in hopes of more enlightenment.


On Mon, Sep 28, 2009 at 1:48 PM, Dave Herman <dherman at ccs.neu.edu> wrote:
> I don't see a _scheme-pointer in the docs, and it's not bound....?
> Dave
> On Sep 28, 2009, at 3:09 AM, Noel Welsh wrote:
>> Ah, I think I know. Should it be _scheme-pointer instead of _scheme? I
>> make this mistake all the time.
>> HTH,
>> N.
>> On Sun, Sep 27, 2009 at 9:51 PM, Dave Herman <dherman at ccs.neu.edu> wrote:
>> ...
>>> * I have tried debugging the crashed DLL in Visual Studio, and it's
>>> showing
>>> the value of the pointer x as the very suspicious value 0x95; the crash
>>> is
>>> an access violation (can't read from that protected address).

Posted on the users mailing list.