osdir.com
mailing list archive

Subject: Re: [plt-scheme] foreign: am I missing something basic? - msg#00493

List: plt-scheme

Date: Prev Next Index Thread: Prev Next Index
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.

N.

On Mon, Sep 28, 2009 at 1:48 PM, Dave Herman <dherman@xxxxxxxxxxx> 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@xxxxxxxxxxx> 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).
>
>
_________________________________________________
For list-related administrative tasks:
http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

[plt-scheme] Discussion of amended charter for Scheme Language Steering Committee

[Apologies if you get duplicates of this message.] This message is being posted to various lists to inform members of the Scheme community of the development of an amended charter for the Scheme Language Steering Committee, which is overseeing the process of Scheme language evolution. We are interested in receiving comments on the charter from the community, so we can address any issues before the amended charter is put in place. The draft charter is available at this URL: http://scheme-reports.org/2009/draft-charter.txt Anyone wishing to discuss the charter should subscribe to the scheme- steering-discuss mailing list by visiting this URL: https://webmail.iro.umontreal.ca/mailman/listinfo/scheme-steering-discuss Comments can then be sent to the mailing list at this address: scheme-steering-discuss@xxxxxxxxxxxxxxxx The discussion period will end in two weeks (October 13, 2009). Will Clinger Marc Feeley Chris Hanson Jonathan Rees Olin Shivers _________________________________________________ For list-related administrative tasks: http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Next Message by Date: click to view message preview

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

On Sep 28, Noel Welsh wrote: > Ok, bad guess. The FFI defines _foo and _foo-pointer for most types, > so I assumed it would be the same for _scheme. [...] `_scheme' is a pointer type, for all Scheme values that are passed as Scheme_Object* references. I don't know what Dave's problem is, but it's not this... -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! _________________________________________________ For list-related administrative tasks: http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Previous Message by Thread: click to view message preview

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

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@xxxxxxxxxxx> 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). _________________________________________________ For list-related administrative tasks: http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Next Message by Thread: click to view message preview

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

On Sep 28, Noel Welsh wrote: > Ok, bad guess. The FFI defines _foo and _foo-pointer for most types, > so I assumed it would be the same for _scheme. [...] `_scheme' is a pointer type, for all Scheme values that are passed as Scheme_Object* references. I don't know what Dave's problem is, but it's not this... -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! _________________________________________________ For list-related administrative tasks: http://list.cs.brown.edu/mailman/listinfo/plt-scheme
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by