I discovered the following bug in Purebasic. If you use for example the OpenLibrary() function the way the Chilkat library does then everything works from the PureBasic IDE but does not work from the terminal or file manager. Thus running a linux daemon with Chilkat produces a segmentation fault.
The following code works in the PB IDE assuming the Chilkat Library is in the same folder as the PB code but not from a linux terminal or file manager.
Code: Select all
OpenLibrary(#PB_Any, "libchilkatPb-9_5_0.so")
Code: Select all
OpenLibrary(#PB_Any, "./libchilkatPb-9_5_0.so")
So there is an inconsistency between how the Purebasic IDE handles file paths and the way Linux handles the file paths.
Simon