Noesis v1.2 RC5 x86 - SetTheme Crashes
Posted: 23 Mar 2018, 11:27
Greetings,
I was looking for a UI solution for our old game engine using D3D9, and decided to develop a sample project merely creates a window and creates D3D9 device on it then try to render Noesis Xaml files. As I learned from a thread version 2.0 lacks D3D9 implemetation in NoesisApp; so I find this thread for older version supporting D3D9 and tried to implement it to my sample project and render a sample Xaml file and result is this:
As seen above my custom project's rendering is bit different from Noesis xaml player. My first thougt was it cant find style or font resources so I tried to manually set style for xaml and managed to compile this lines of code but it crashes when I finally try to run SetTheme() :
I found similar problem in this thread (please look at post#35) right after that entry, Jsantos stated that "updated the x86_64 distributable" and original poster says "it works now". So I have suspected you may fix the problem on x64 redist but somehow forgot to fix same bug for x86 redist files.
I was looking for a UI solution for our old game engine using D3D9, and decided to develop a sample project merely creates a window and creates D3D9 device on it then try to render Noesis Xaml files. As I learned from a thread version 2.0 lacks D3D9 implemetation in NoesisApp; so I find this thread for older version supporting D3D9 and tried to implement it to my sample project and render a sample Xaml file and result is this:
As seen above my custom project's rendering is bit different from Noesis xaml player. My first thougt was it cant find style or font resources so I tried to manually set style for xaml and managed to compile this lines of code but it crashes when I finally try to run SetTheme() :
Code: Select all
Ptr<ResourceDictionary> xamlTheme = Noesis::GUI::LoadXaml<ResourceDictionary>("WindowsStyle.xaml");
ResourceDictionary *resDic;
resDic = (ResourceDictionary *)xamlTheme.GetPtr();
const Ptr<IUISystem>& uiSystem = NsGetSystem<IUISystem>();
uiSystem->SetTheme(resDic);