Is it valid to call GUI::SetApplicationResources with a NULL pointer?
Posted: 16 Dec 2022, 17:08
I believe it is not a good idea to call SetApplicationResources with a null pointer, but otherwise Noesis::Shutdown reports a memory leak, so either way I need to investigate.
I noticed that some controls log an error the moment SetApplicationResources(nullptr) is called:
I can only guess, but it looks like the ancestor is no longer there but the binding still tries to convert (now empty) tag to a number.
So my question is: are things supposed to fall apart if we pull the rug out like this? Or is this some kind of bug?
I noticed that some controls log an error the moment SetApplicationResources(nullptr) is called:
For example it happens for TreeView with default theme and is caused by a binding to Tag:[NOESIS/E] 'Converter<BaseComponent>' binding converter failed to convert value 'null' (type 'BaseComponent')
Code: Select all
<Decorator x:Name="CurrentIndent" Grid.Column="0" Width="{Binding Tag, RelativeSource={RelativeSource AncestorType={x:Type ItemsPresenter}, AncestorLevel=1}}"/>So my question is: are things supposed to fall apart if we pull the rug out like this? Or is this some kind of bug?