Subject: Re: [ruby-ffi] Re: Link to non-windows dlls |
From: Kevin Vanden Berge |
Date: 10/23/10 10:33 AM |
To: ruby-ffi@googlegroups.com |
On Sat, Oct 23, 2010 at 12:18 PM, kvberge <kvandenberge@gmail.com> wrote:Since I can't test it, why are you sending a :pointer instead of :string?
> I can provide the c declarations to the functions I am attempting to
> wrap, but I cannot provide the dll because it is a dll for the company
> I work for and I am not allowed to supply the dll.
>
In the C definition Send expects a string, but you're using a pointer
and not using FFI MemoryPointers to handle it.
Also, will be great to know in which Ruby line the project segfault,
guess could be based on what I'm saying above.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry