I have a dll that I load and it runs. I end it with libfree naturally and when I go to run it again I get an error unless I exit from the script.
Below are the lines I use:
Let>twainsave_key=5B7EAE51-5A1E-C4E5-6016-NOTREALKEY21C3
Let>twainsave_key_start={
Let>twainsave_key_end=}
Let>twainsave_fullkey=twainsave_key_start
concat>twainsave_fullkey,twainsave_key
concat>twainsave_fullkey,twainsave_key_end
Let>command=-details "%scannersettingsdir%\details.txt"
LibLoad>%SYS_DIR%\twainsave.dll,hDll
LibFunc>hDll,TS_X,ret1,twainsave_fullkey
LibFunc>hDll,TS_Command,ret2,%command%
LibFree>hDll
Any ideas? Does it have to do with the buffer and if so how would I go about settting it?
Thanks
Running DLL Twice
Moderators: JRL, Dorian (MJT support)
Seems to work
I just did as you mentioned and it seems to work. Much better than my work around which was to disable the button once it was run.