Subject:
Re: [ruby-ffi] Re: segfault on windows MRI but not windows JRuby
From:
Jon
Date:
12/4/09 1:16 PM
To:
ruby-ffi@googlegroups.com

> if not Win.EnumDesktopWindows
> 
> should be:
> 
> if not Win.enum_desktop_windows
> 
> and in order to display window title puts command should be:
> 
> puts "[%03i] Found '%s'" % [ win_count += 1, title.get_string(0) ]

Fixed, thank you. I should also update all samples to check for null pointers from calloc (and nil from MemoryPointer.new ??).

Jon