Open omidkrad opened 4 months ago
I tried to link QuantConnect.Brokerages.InteractiveBrokers
by project reference instead of package. The project QuantConnect.Brokerages.InteractiveBrokers
references QuantConnect.IBAutomater
by project.
In QuantConnect.IBAutomater
project I tried to put the line that tries to delete IBAutomater.log
in try/catch, but for some reason after doing this and running the project only once, IB Gateway stops working altogether. Even trying to run IB Gateway manually won't work and ibgateway process won't load at all. When reverting changes and linking QuantConnect.Brokerages.InteractiveBrokers
by package instead of by project, and running the Launcher, then IB Gateway starts again, with the exception happening again:
System.IO.IOException: The process cannot access the file 'C:\Jts\ibgateway\1019\IBAutomater.log' because it is being used by another process.
This always happens when running the project locally.
---- REPRO STEPS ---- ibgateway version: 1019 In Launcher project reference the following nuget packages:
QuantConnect.Brokerages.InteractiveBrokers
QuantConnect.Brokerages.InteractiveBrokers.ToolBox
(latest version is 2.5.16517 for both)In
config.json
set the following settings:Run the Launcher