Inheritance from NoesisApp::Window crashes in version 3.0
Hi
We have implemented multi-window functionality using the WindowEx class inherited from Noesis App::Window
https://www.youtube.com/watch?v=r2SANnWfX8o
After migrating to version 3.0, the application crashes inside NoesisApp::Window
crash causes any access to Window fields (Window::mActivated, Window::mDeactivated(),... ParentClass::MeasureOverride ...)
mActivated.Empty() -> crash
We have implemented multi-window functionality using the WindowEx class inherited from Noesis App::Window
https://www.youtube.com/watch?v=r2SANnWfX8o
After migrating to version 3.0, the application crashes inside NoesisApp::Window
crash causes any access to Window fields (Window::mActivated, Window::mDeactivated(),... ParentClass::MeasureOverride ...)
mActivated.Empty() -> crash
Code: Select all
void Window::OnDisplayActivated(Display*)
{
mView->Activate();
SetReadOnlyProperty<bool>(IsActiveProperty, true);
mActivated(this, EventArgs::Empty); //CRASH!!!
}
Re: Inheritance from NoesisApp::Window crashes in version 3.0
Hi! What part of that video is NoesisGUI? The whole editor is NoesisGUI?
I am going to need more information and context about the crash, not sure how you used WindowEx and a call-stack will definitely help.
I am going to need more information and context about the crash, not sure how you used WindowEx and a call-stack will definitely help.
Re: Inheritance from NoesisApp::Window crashes in version 3.0
The UI is fully implemented on Noesis + Unigine Engine
Re: Inheritance from NoesisApp::Window crashes in version 3.0
Dump
https://yadi.sk/d/rSIqNNLvBWl1fg
https://yadi.sk/d/rSIqNNLvBWl1fg
Code: Select all
Size Window::ArrangeOverride(const Size& finalSize)
{
if (mDisplay != 0)
{
float clientW = (float)mDisplay->GetClientWidth();
float clientH = (float)mDisplay->GetClientHeight();
ParentClass::ArrangeOverride(Size(clientW, clientH)); // !!!CRASH
return Sizei((uint32_t)GetWidth(), (uint32_t)GetHeight());
}
return ParentClass::ArrangeOverride(finalSize);
}
Re: Inheritance from NoesisApp::Window crashes in version 3.0
Without knowing what modifications you have it is impossible to solve this. Are you able to reproduce this in our samples? Could you also paste a callstack?
Re: Inheritance from NoesisApp::Window crashes in version 3.0
I will do a test based on Sample
Re: Inheritance from NoesisApp::Window crashes in version 3.0
Are you able to reproduce this in our samples without source code modifications?
Re: Inheritance from NoesisApp::Window crashes in version 3.0
I made an example and found errors:
- different macros when building projects (NS_PROFILE)
- missing resources in styles (Fonts)
- different macros when building projects (NS_PROFILE)
- missing resources in styles (Fonts)
Who is online
Users browsing this forum: Google [Bot] and 69 guests