Subject: Re: [ruby-ffi] default to :stdcall on windows? |
From: Wayne Meissner |
Date: 6/11/10 7:55 PM |
To: ruby-ffi@googlegroups.com |
I think changing the default at this point would be bad, and as Luis said, a lot of non-microsoft DLLs are cdecl, not stdcall. Explicitly declaring the convention also matches up with C/C++, where you have to declare the function as STDCALL/WINAPI. On 12 June 2010 02:16, rogerdpack <rogerpack2005@gmail.com> wrote:
I'm not sure if this is necessary, but I recently saw a bug report that, for one user, the fact that they weren't using stdcall for their method declarations was causing a memory leak. Maybe it should default to stdcall on windows since that's what dll's default to, isn't it? Thoughts? Or maybe I'm repeating myself here. Thanks! -rp