Christian Uceda wrote:
So why there is no mention of UserLibThreadsafe and UserLibThreadsafeUnicode in the documentation?
It is in the library documentation, not in the Purebasic documentation.
In PB's help file, you learn about subsystems, and the official ones : NT4, OpenGL, etc...
Now my libs use 3 subsystems, and these are not official subsystems, hence nothing about them in the official documentation.
However, there is a topic in PureSMTP.chm :
PureSMTP.chm -> Unicode_Thread-safe topic wrote:
How to use this library in unicode and/or thread-safe mode
This library exists in several versions :
- the standard version, located in %Purebasic%\PureLibraries\UserLibraries\ ;
- the thread-safe version, located in %Purebasic%\SubSystems\UserLibThreadSafe\PureLibraries\ .
- the unicode version, located in %Purebasic%\SubSystems\UserLibUnicode\PureLibraries\ .
- the unicode + thread-safe version, located in %Purebasic%\SubSystems\UserLibunicodeThreadSafe\PureLibraries\ .
In order to use this library in thread-safe mode (compiler option /THREAD), you have to enable the subsystem 'UserLibThreadSafe'
in the PB IDE, or add '/SUBSYSTEM UserLibThreadSafe' to the PBCompiler arguments. In jaPBe, do nothing : it will automatically
enable the 'UserLibThreadSafe' subsystem to use the threadsafe versions of the installed userlibraries.
It's the same logic for unicode and unicode + thread-safe modes.
As you didn't spoke about POLINK errors, I didn't think you were using the wrong subsystem.
Christian Uceda wrote:
And not even a pull down option list with the magic keywords, at least having seen both I could have had a chance.
There is one in jaPBe
