Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You cant create new c++ project if Klawr plugin enabled #50

Open
ihavenick opened this issue Dec 1, 2015 · 2 comments
Open

You cant create new c++ project if Klawr plugin enabled #50

ihavenick opened this issue Dec 1, 2015 · 2 comments

Comments

@ihavenick
Copy link

I tried to open new c++ project and get this error.

Running D:/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe  -projectfiles -project="C:/Users/ihavenick/Documents/Unreal Projects/MyProject3/MyProject3.uproject" -game -engine -progress -2015
Discovering modules, targets and source code for game...
KlawrClrHostNative Target.Configuration: Release
Klawr libnamakesme: Klawr.ClrHost.Native-x64-Release.lib
ERROR: Exception thrown while processing dependent modules of KlawrRuntimePlugin
ERROR: Unable to instantiate instance of 'KlawrClrHostNative' object type from compiled assembly 'MyProject3ModuleRules'.  Unreal Build Tool creates an instance of your module's 'Rules' object in order to find out about your module's requirements.  The CLR exception details may provide more information:  System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: The process cannot access the file '../../Engine/Binaries\Win64\Klawr.ClrHost.Managed.dll' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
   at KlawrClrHostNative..ctor(TargetInfo Target) in d:\4.10\Engine\Source\ThirdParty\Klawr\ClrHostNative\KlawrClrHostNative.Build.cs:line 72
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, Object[] args)
   at UnrealBuildTool.RulesCompiler.RulesAssembly.CreateModuleRules(String ModuleName, TargetInfo Target, String& ModuleFileName) in D:\4.10\Engine\Source\Programs\UnrealBuildTool\System\RulesCompiler.cs:line 1417
@Algorithman
Copy link

And it doesnt happen to blueprint projects. Interesting.
But a try/catch should work. It wants to overwrite the dll in use. At this point there shouldnt be any differences in the dll.

@Algorithman
Copy link

You can use this commit ( Algorithman@8a2a43c )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants