Menu

FreeType problem

Help
2005-09-14
2012-07-26
  • Nobody/Anonymous

    I'm a python developer and I want to call the freetype6.dll with the ctypes package. In all my programs I use that package for call the .dll, without any problem, but with freetype, I found some problems at the first function, FT_Init_FreeType, because ctypes say me (windows say to ctypes that say to me) that FT_Init_FreeType no need any parameter, so if I pass it the library struct, I receive an error: ValueError: Procedure probably called with too many arguments (4 bytes in excess).
    In my experience, this problem appeare when I call a function that has less arguments than I pass. I try also to linux system (with the /usr/lib/libfreetype.so) and here, with the same code, it work well.
    Can some one help me?

    Thanks,
    Michele

     
    • GnuWin

      GnuWin - 2005-09-14

      Why do you pass excess parameters to a function? In other words: what's the point in passing a parameter to FT_Init_FreeType when it has none?

       
MongoDB Logo MongoDB