Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Runtime error when referencing external library in Unreal Engine

I followed the steps from this tutorial:


I was able to successively reference the external c++ library and the project compiles just fine. However, at runtime, when I instantiate an object from external library, I get the following error:

Exception thrown at 0x00007FFD7244FD31 (mscordacwks.dll) in UE4Editor.exe: 0xC0000005: Access violation reading location 0x0000000000000000. occurred Source information is missing from the debug information for this module

and the stack is:

mscordacwks.dll!ClrDataAccess::EnumMemDumpAllThreadsStack(enum CLRDataEnumMemoryFlags) Unknown Non-user code. Symbols loaded. mscordacwks.dll!ClrDataAccess::EnumMemoryRegionsWorkerMicroTriage(enum CLRDataEnumMemoryFlags) Unknown Non-user code. Symbols loaded. mscordacwks.dll!ClrDataAccess::EnumMemoryRegionsWrapper(enum CLRDataEnumMemoryFlags) Unknown Non-user code. Symbols loaded. mscordacwks.dll!ClrDataAccess::EnumMemoryRegions(struct ICLRDataEnumMemoryRegionsCallback ,unsigned int,enum CLRDataEnumMemoryFlags) Unknown Non-user code. Symbols loaded. dbgcore.dll!GenGetProcessInfo(unsigned long,struct _MINIDUMP_STATE ,struct _INTERNAL_PROCESS ,struct _LIST_ENTRY *) Unknown Non-user code. Symbols loaded. dbgcore.dll!MiniDumpProvideDump() Unknown Non-user code. Symbols loaded. dbgcore.dll!MiniDumpWriteDump() Unknown Non-user code. Symbols loaded. UE4Editor-Core.dll!00007ffdb17e95fb() Unknown No symbols loaded. UE4Editor-Core.dll!00007ffdb17ded6a() Unknown No symbols loaded. UE4Editor-Core.dll!00007ffdb17d2865() Unknown No symbols loaded. UE4Editor-Core.dll!00007ffdb17e0864() Unknown No symbols loaded. [External Code] Annotated Frame

the line where the error occurs:

 CSharpClassExposer* scharpClassExposer = nullptr;
 scharpClassExposer = new CSharpClassExposer();

The external library that I am referencing is C++ CLI (managed C++) which further wraps C# dll and I am sure it has something to do with this. However, in my separate test project where I use the same managed library with native c++ console client instead of Unreal Engine, it all works fine.

Product Version: UE 4.18
more ▼

asked Mar 08 '18 at 11:11 AM in C++ Programming

avatar image

1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question