
Originally Posted by
jpbro
Olaf - thank you very much for the clarifications re: cThreadHandler, very informative.
I just tried your threaded cActiveScript approach on Windows 10.1809 and it worked flawlessly when compiled, but I get the following error on Terminate in the IDE (maybe this is normal in the IDE?):
Code:
Run-time error '453':
Error Calling: Run()
ThreadError: Can't find DLL entry point AtlAxWinTerm in atl
Ah - did receive that error as well yesterday, and fixed it in the RC5-sources already ...
(AtlAxWinTerm is an inline-function and not a public export in the atl.dll)
What if you replace (in cScriptThread Class_Initialize) a new Cleanup-Script:
Code:
.Add "Sub Cleanup()" 'needed and called shortly before Thread-Termination
.Add " On Error Resume Next"
.Add " New_c.CleanupRichClientDll"
.Add " If Err Then Err.Clear"
.Add "End Sub"
Does that help in IDE-mode?
Olaf