PDetsFromPath not working in RealStudio

I've tried everything and cannot get PDetsFromPath to load the TurboActivate.dat file in RealStudio.

dim f As FolderItem #If DebugBuild f = GetFolderItem("").Child("TurboActivate.dat") PDetsFromPath(f.AbsolutePath) #Endif

When I debug it, f.Exists=true, so the file is there. This is the first bit of code in my App.Open event, so I'm not calling any other TurboActivate functions before it, or any functions for that matter.

Without this, it's a giant pain to debug the activation interface.

Can anyone help please?

Thanks!

I'll look into this and get back to you.

It's working here.

What version of TurboActivate are you using? What platform are you on? And what Exception is PdetsFromPath throwing?

I am using:TurboActivate v3.2.2RealStudio 2010 Release 3.1Debugging on Mac OSX 10.6.8

PDetsFromPath returns 8Raise new ProductDetailsException

If I build the app and include the lib and dat file in the package, everything works. Just trying to debug the interface without having to build and copy those in every time.

Thanks

This can mean a couple of things. It probably means the path you're passing to PDetsFromPath is not valid or the file is not a valid TurboActivate.dat file.

Add a breakpoint to that point in your code and make sure the path you're passing to the function is valid.

Try hardcoding the path, then go from there.

Well, neither of those is the problem. The file is there. The path is valid. I can open it as a text or binary stream and display the contents.

The file is a valid TurboActivate.dat file, because if I build the app and add it to the app bundle, it validates my key and activates like it should.

Oh well, guess I'll just debug my interface the hard way.

Did you try hardcoding the path? (e.g. "/path/to/TurboActivate.dat")?