A bit further, the windows specific code is in https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/e17db79411cfec767e04f... check the users of LoadLibrary, which comes form the windows std libraries. https://msdn.microsoft.com/en-us/library/windows/desktop/ms684175%28v=vs.85%... On Sun, May 20, 2018 at 9:46 PM, Guillermo Polito <guillermopolito@gmail.com
wrote:
On Sat, May 19, 2018 at 1:37 PM, Peter Uhnák <i.uhnak@gmail.com> wrote:
Hi,
some Windows users are repeatedly running into Pharo failing to load Cairo library on Windows (see stack screenshot at the bottom).
The problem is that I have no idea how to even start debugging this.
Is there some documentation on how Pharo loads libraries via FFI on Windows that I can start digging into?
Note that the library is definitely present, as this happens only occasionally -- it can be fixed by restarting PC. But I cannot reasonably ask users to restart just because Pharo decided it doesn't feel like loading a library.
Any pointers / docs / ideas appreciated.
You can see the actual code from
https://github.com/OpenSmalltalk/opensmalltalk-vm/search?utf8=%E2%9C%93&q= findAndLoadModule%28char+*pluginName%2C+sqInt+ffiLoad%29&type=
?
Thanks, Peter
--
Guille Polito
Research Engineer
Centre de Recherche en Informatique, Signal et Automatique de Lille
CRIStAL - UMR 9189
French National Center for Scientific Research - *http://www.cnrs.fr <http://www.cnrs.fr>*
*Web:* *http://guillep.github.io* <http://guillep.github.io>
*Phone: *+33 06 52 70 66 13
-- Guille Polito Research Engineer Centre de Recherche en Informatique, Signal et Automatique de Lille CRIStAL - UMR 9189 French National Center for Scientific Research - *http://www.cnrs.fr <http://www.cnrs.fr>* *Web:* *http://guillep.github.io* <http://guillep.github.io> *Phone: *+33 06 52 70 66 13