Gamestudio Links
Zorro Links
Newest Posts
Zorro tutorial ideas?
by mistery. 09/19/26 17:09
Trades during a running bar
by Martin_HH. 09/18/26 12:45
Capital slider is not saving in Z12
by frutza. 09/17/26 13:36
Avoiding pop-up training parameter results
by Martin_HH. 09/16/26 21:31
What are you working on?
by rayp. 09/16/26 20:20
Future of ZorroHFT
by TipmyPip. 09/16/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AlleyRatStudios), 2,283 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
mistery, lokkalyansamiti, rahulbuilds, speedx, liop
19236 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: 81
Budapest
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 81
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,133
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,133
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