The product details file "TurboActivate.dat" is corrupt

Hello-

I have 2 plugins that use TurboActivate. I keep plugin1.dat in the main app folder and plugin2.dat in a subfolder with it's own TurboActivate.exe and TurboActivate.dll.

I just updated both plugins to the latest TurboActivate, but the second plugin is now throwing the exception listed in the subject because it appears to be referencing plugin1.dat in the main app folder, even though this code for plugin2, which was working perfectly before, hasn't changed:

// launch TurboActivate Process TAProcess = new Process { StartInfo = { FileName = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "Plugin2\\TurboActivate.exe") }, EnableRaisingEvents = true };

TAProcess.Exited += p_Exited; TAProcess.Start();

I can confirm this my replacing the .dat for plugin1 in the main app folder with that for plugin2, of course this causes plugin1 to throw the exception then.

???

Ahh, I see that I forgot to add the subfolder back in to all the dllImport lines on TurboActivate.cs. However, when I add those back in, now I get:

System.AccessViolationException was unhandled Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Source=TimeOut12.2 StackTrace: at TurboActivate.Native.UseTrial(TA_Flags flags) at TurboActivate.UseTrial(TA_Flags flags) at TurboActivate.UseTrial() at TimeOut.FormOpenDentalT.menuItemSetup_Click(Object sender, EventArgs e) at System.Windows.Forms.MenuItem.OnClick(EventArgs e) at System.Windows.Forms.MenuItem.MenuItemData.Execute() at System.Windows.Forms.Command.Invoke() at System.Windows.Forms.Command.DispatchID(Int32 id) at System.Windows.Forms.Control.WmCommand(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at OpenDental.ProgramEntry.Main(String[] args) in C:\Users\wjs\Desktop\ODVersions\opendental12.2b\opendental12.2\OpenDental\Main Modules\ProgramEntry.cs:line 45 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException:

This sounds like you're using the wrong version of TurboActivate.dll. Make sure you're using all the latest versions of TurboActivate.dll, TurboActivate.exe, and TurboActivate.cs. Replace all old copies with the new versions.