Strange return code from PDetsFromPath

I'm trying to use TurboActivate in a windows service written using Xojo (formerly RealStudio). PDetsFromPath is returning strange codes (like 5634344, although it changes each time).

The same code works in a desktop app and I've checked the path and tried hardcoding it into the app. Any thoughts?

This is with version 3.4.4

We can't reproduce this. Is the TurboActivate.dll in the same path as your Windows Service?

Ugh, it did turn out to be a problem with the path. Wouldn't have guessed it would error in that way...

Thanks!