TA_PDetsFromByteArray returns TA_FAIL for plugins

According to the documentation, the method TA_PDetsFromByteArray() returns TA_FAIL if the file was already loaded.

I experienced issues when using TurboActivate with a audio plugin where it might be possible that this method will be called multiple times when multiple instances are used (or the instance is deleted and a new instance is added).

Can I safely just check for TA_E_PDETS after this method (and effectively ignore TA_FAIL) or is there a cleaner way (like a method that unloads the data)

Hey Christoph,

Yes, TA_PDetsFromPath() or TA_PDetsFromByteArray() will return TA_OK if it successfully loaded a new TurboActivate.dat file and TA_FAIL if it's re-loading an existing file. All other error codes should be handled as fatal.

The reason we just don't blindly say TA_OK on passing in the same file is that we like to distinguish between the 2 so customers can improve their program's efficiency.

But you can treat both TA_OK and TA_FAIL as successes and everything else as a failure.