Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/08/26 18:50
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Aku_Aku, 1 invisible), 15,822 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Zorro locks DLL #489078
01/07/26 12:11
01/07/26 12:11
Joined: Jan 2022
Posts: 73
Budapest
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 73
Budapest
Hello,

After a longer break, I recently started developing new algos again and updated to Zorro 2.70.
I am using VS Code, so the compiled DLL files are produced “externally” and are therefore not directly managed by Zorro.

My workflow is the following: I modify the code, compile it, and run it in Zorro. However, after making further changes and compiling again, I frequently get this error from the C++ compiler:
Code
LINK : fatal error LNK1104: cannot open file 'C:\zorro\myStrategy\myDownloader.dll'

It appears that Zorro does not release the DLL after a run, so the system cannot overwrite it. This happens with both Zorro and Zorro64. The workarounds I have found so far are restarting Zorro, or running a different script first, and only then compiling and running the updated one.

I am not sure when this behavior started to occur, but is there a way to explicitly unload or unlock the DLL after a Zorro run?

Re: Zorro locks DLL [Re: NorbertSz] #489079
01/07/26 13:33
01/07/26 13:33
Joined: Jul 2000
Posts: 28,083
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,083
Frankfurt
A strategy DLL cannot be released after a run, since it is still needed for chart and panel functions. It is released when the source has a newer timestamp, or when you run a different strategy, or close Zorro. If you debug it with VC++, you can simply click on the "Restart" button after modifying the code. It will then automatically close Zorro, compile, and restart it with the new DLL.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1