AOE 4 Editor - Build Error

Hours of mod buliding are gone, nothing changed at all, but “bulding” the mod results now into this error-message:

The calling thread cannot access this object because the object is owned by another thread.

Even the backupfiles wont build the mod at all. Hours of modding went down the drain, this editor is a mess.


“object is owned by another thread” means you try to write to files which are in usage (file lock) by another program. I’d guess you have AoE4 game running and accessing your mod while you’re editing the mod. That doesn’t work in any program. You cannot write to a file while it is in usage by another program.

No, this is not the problem, if I turn of the PC for the night, the error appears the next day too. Only steam and the editor are running. I even use the microsoft repairkit for the .NET framework.


Make sure, the *.locdb is NOT opened in your preview window!

Screenshot 2022-10-25 025850

The *.locdb is located in the treeview, where you can find the mod-image.

Screenshot 2022-10-25 030202

1 Like