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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Delegate "access violation reading location"

Hello Epic and Friends!

I have a delegate and a queue that is being populated in another thread and I am running into what I would consider some confusing behavior. The delegate is bound on construction of an object on the main thread, and is executed on the main thread only.

alt text
The code above runs successful literally for tens of thousands of iterations sometimes, then only several hundred or dozens on other occasions.

I believe I am doing things in a thread safe manner here but as the deep intricacies of c++ and indeed threading in general are still mysterious to me, I was wondering if any part of this stands out as bad practice, or if there is an explainable reason as to why this is happening.
Hoping someone could shed some light on my flaw here.
Thanks =D

Product Version: UE 4.8
code.png (17.4 kB)
more ▼

asked Aug 29 '15 at 11:29 PM in C++ Programming

avatar image

1.1k 40 33 76

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

1 answer: sort voted first

This was actually a simple answer! TArrays are not thread safe, so there were a number of threading issues that arose. The solution was to use a TQueue instead, which makes total sense.

more ▼

answered Aug 31 '15 at 06:05 PM

avatar image

1.1k 40 33 76

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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