TabularEditor
TabularEditor copied to clipboard
in Tabular Editor 2.16.5 loading custom dll from arbitrary path seems not to be working
Hello,
I just tried to run a test script I am doing to test my custom dll thing, and the script runs in Tabular Editor 3 but not in Tabular Editor 3. I get the same error that I got before arbitrary path dll loading was introduced. Is it a Tabular Editor 3 only feature?
Different versions of TE might use different versions of TOMWrapper.dll, as new features are released. Since your custom DLL references TOMWrapper.dll you must ensure that the version referenced by your DLL exactly matches the version used by TE - otherwise, you get the error shown.
In fact, this limitation is the main reason why we don’t encourage the use of custom DLLs, as you have to recompile the DLL whenever there is a new version of TE that uses an updated version of TOMWrapper.dll. Longer term, we want to make it easier to store custom classes and methods in a way that lets you reuse them across scripts, without relying on custom DLLs.
I see!
If the Tomwrapper.dll used by tabular editor is newer than the one I used to compile the custom dll should it work? Maybe I can keep a slightly older version installed just for this purpose.
Looking forward to the new feature for custom classes
El dom, 20 feb 2022 4:26, Daniel Otykier @.***> escribió:
Different versions of TE might use different versions of TOMWrapper.dll, as new features are released. Since your custom DLL references TOMWrapper.dll you must ensure that the version references by your DLL matches the version used by TE - otherwise, the script might not execute.
In fact, this limitation is the main reason why we don’t encourage the use of custom DLLs, as you have to recompile the DLL whenever there is a new version of TE that uses an updated version of TOMWrapper.dll. Longer term, we want to make it easier to store custom classes and methods in a way that lets you reuse them across scripts, without relying on custom DLLs.
— Reply to this email directly, view it on GitHub https://github.com/TabularEditor/TabularEditor/issues/965#issuecomment-1046151721, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJUUXHNHGCDLKQQLEMG7EUDU4BNPDANCNFSM5O3QZ2XQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
There are no guarantees it will work. Your best option right now is probably to compile two versions of your custom dll - one for each version of TE you intend to target.
I just realized that there's no TOMWrapper.dll in the install folder from Tabular Editor 2 -- where is the dll I should reference to make sure it works with Tabular Editor 2?
Regards!
%localappdata%\TabularEditor\TOMWrapper.dll
(it should appear after TE2 has been launched at least once)