Hi, in loadNativeLibrary2 are some lines which do nasty things if errsiz is zero: 237, 249, 308 errbuf[errsiz - 1] = '\0'; I think the code is not correctly written in this way, isn't it? Kindly regards, Nico