#68 error in Delphi Interface

open
nobody
5
2014-09-29
2008-04-28
Anonymous
No

The component synspellcheck is probably obsolete or is not compatible with new uniSynEdit...
Constantly gives out errors in an operating time Delphi7 IDE...

Discussion

  • Christophe PARIS

    Logged In: YES
    user_id=628902
    Originator: NO

    I see that in version 1.2.2 there is a C interface included in hunspell (hunspell.cxx and hunspell.h).
    It's seems redundant with the Delphi interface, but it's missing a way to free suggestion results though.
    In fact it should probably exists when used from C code too, because you don't know what memory allocator the caller is using.
    This would allows to have only one interface maintained into hunspell.

     
  • Németh László

    Logged In: YES
    user_id=726595
    Originator: NO

    You are right, a single C interface is enough. I have attached a patch to extend the default C interface (src/hunspell/hunspell.h) with free_list() to solve the memory allocation problem under Delphi, C# etc. Next Hunspell release will contain it, if it works well. Thanks for your report and comment.

    File Added: hunspell_free_list.patch

     
  • Németh László

    Logged In: YES
    user_id=726595
    Originator: NO

    The newest Hunspell release contain a free_list() method for different memory allocator issue.

     
  • Adrián Chaves Fernández

    Doesn’t that solve this issue?