from this post http://www.purebasic.fr/english/viewtop ... 13&t=48459 i have learned that the preferences library is intend to work with threads, too. But not so with Linux. Here is a sample code:
Code: Select all
Procedure Work(*Args)
Debug ReadPreferenceInteger("Test", 0)
EndProcedure
OpenPreferences(GetHomeDirectory() +"test.conf")
WritePreferenceInteger("Test", 1)
Debug ReadPreferenceInteger("Test", 0)
Thread = CreateThread(@Work(), 0)
WaitThread(Thread)
ClosePreferences()
Regards
Uwe