Access Violation on Editor Close using FSlateGameResources::Set()
Reproduction steps and Error details:
'm getting an
This specifically only occurs when the editor is run from Visual Studio, play in editor is pressed, wait 2 seconds and then click stop and close the editor (error on editor close). The error does not seem to occur if the dynamic brush fails to load the image.
From my debugging attempt what I've come to assume is that somewhere my code is causing UE's garbage collector to attempt to delete an object twice (the second time failing on that line).
The specific line that seems to be causing the error (error does not occur if this line is not present):
Style is created in SSlateWidget::SetupStyle():
Brush is set in SSlateWidget::LoadBrush:
Both functions are called in SSlateWidget::Construct:
I have tested using the brush, which works both directly and when loaded from the FSlateGameResources object (image is loaded correctly and displayed on screen correctly). Using the brush does not affect the unhandled exception.
For more information, I've attached a stripped-down project that can reproduce the problem here: https://www.dropbox.com/s/7auh7d527fv2ngy/SlateTest.zip?dl=0
asked Dec 29 '15 at 05:53 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here