Module cannot be loaded

I work on a 2 modules plugin.

The first contains factories that build UMediaCapture and other similar things. And while developing this module, I never face any problem.

The second contains code which runs inside an independent thread but doesn’t contain any UCLASS() at all (As it seems to matter for my problem). As the first, never had a problem with it while developing it.

But once I needed to access objects inside the first from the second, I faced problems, a lot, all related to the dependencies. I think, I solved all these problems of dependencies but one is left. I cannot recompile my first module without having to restart the editor but it doesn’t seem to be always the case and when I try to use the compiled code, an error occurs telling me that the DLL cannot be loaded due to an error of the OS or a bad module configuration. Forcing me to quit the editor, erase manually the content of Project/Binaries/ and then launch the editor and say yes to rebuild missing parts.

This is not convenient at all and seems more like a bug that an expected behavior.

I read that modules that contain UCLASS() force a restart of the editor but why is it not the case every time? Any help or pointers would be appreciated.

First module (left), Second module (right) both inside the module window.

271374-module1.png

271375-module2.png

271676-errormsg.png