Gamestudio Links
Zorro Links
Newest Posts
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 01/07/26 15:14
Zorro locks DLL
by jcl. 01/07/26 13:33
zorro with ccxt?
by qin. 01/07/26 07:50
The new evaluation system
by jcl. 01/05/26 08:50
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NorbertSz, Quad, AndrewAMD), 2,559 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Namitha_NN, Syndrela, agasior, mosfet, MonsterX
19188 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Zorro locks DLL #489078
Yesterday at 12:11
Yesterday at 12:11
Joined: Jan 2022
Posts: 72
Budapest
N
NorbertSz Online OP
Junior Member
NorbertSz  Online OP
Junior Member
N

Joined: Jan 2022
Posts: 72
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
Yesterday at 13:33
Yesterday at 13:33
Joined: Jul 2000
Posts: 28,050
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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