I've read in the plugin guide lines that we should use the safethread or task manager classes instead of using threads but theres no mention of how to do this. So my question is should I and how?
my code normally is
The same question for paths. I want to follow the guidlines for paths but dont know how they work. For example I want to write out a debug log for my plugins and was after creating a OMSkype folder under plugins and create a log file , possibly a directory under that.Code:Dim workerThread As Threading.Thread workerThread = New Threading.Thread(AddressOf startup) workerThread.Priority = Threading.ThreadPriority.Normal workerThread.Start()
lastly, is it possible to have a plugin directory? I have a number of dll's needed for Skype and it would be good to keep them all in the same place. I tried just creating it but that doesn't seem to work it only works if all the dll's are in the root plugin folder.
Code:OpenMobile.Threading.SafeThread.Asynchronous(AddressOf startup, theHost)
I thought thats what I was to use but what values to give. For example in combine what do I put for the openmobile path which I want to append to.The main rule is don't hardcode any paths or combine them yourself. Instead use Path.Combine to add the necessary path separators, but other then that its pretty straightforward.
My dll has the same name as the folder under the plugins path but it didn't work for me I'm afraid.It should work as long as the folder name matches your dll name but i'll double check (ex Skype.dll in the plugins folder and SkypeSupport.dll in /plugins/Skype/).
skins folder, PluginPath for the plugins directory and DataPath for OMs data storage directory. The latter directory is a writable directory on every platform even win7 w/UAC.